Local User Auth by using Captive Portal and redirection
Hi,
I already read many posts here regarding redirection issues with Captive Portal, but they didn't solve my problem and I'm going crazy.
My configuration is this one:
[ul]and the code is this one:
edit 34
set srcintf "port4"
set dstintf "wan1"
set srcaddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set service "ALL"
set groups "OMNIA-USERS"
set auth-redirect-addr "auth-cert.fortinet.com"
set nat enable
next
config user setting
set auth-type http https
set auth-cert "Fortinet_Wifi"
set auth-secure-http enable
end
config system global
[...]
set auth-https-port 1442
[...]
end
edit "fortinet.com"
set domain "fortinet.com"
set authoritative disable
config dns-entry
edit 1
set hostname "auth-cert"
set ip INTERFACE_IP
next
end
next
So, I configured a DNS entry for the auth-cert.fortinet.com URL pointing to the port4 interface IP (the DNS resolution works fine). "auth-cert.fortinet.com" is the URL configured in the CN field of the certificate (Fortinet_Wifi, one of the official Fortinet certificates). In this way I would expect the redirection and certificate are correctly configured.
However, the problem is always the same:
[ol]Where am I wrong? Any idea to remove the bad certificate warning?
Many thanks in advance!! 
