Hotspot not working with HTTPS Redirect enabled
Posted: Fri Feb 18, 2022 6:20 am
I have a simple hotspot running, but not quite properly. If I disable HTTPS Redirect, and set SSL cert to none, in the profile then the MT intercepts browsing and shows the login page after connection - for HTTP sites only.
I created a (self signed) cert for hotspot.mydomain.com and put in on the MT, set the cert in the hotspot profile and enabled HTTPS Redirect, and then attempts to reach any site upon connection results in a "Connect To Wifi" page in chrome saying that I may be required to visit the login page. When I click the CONNECT button on the page I end up at the same page again. The address bar shows the HTTPS warning (probably that cert doesn't match).
Why is the MT not taking the user to the login page when using HTTPS sites and enable HTTPS Redirect + set SSL cert?
My hotspot setup:
Profiles setup (with HTTPS disabled):
One big clue,if I browse to HTTPS://hotspot.mydomain.com I end up in the same loop. I think the cert/info being served by the MT is being rejected by the browser...not idea why. The cert I installed includes the private key, and the SAN is DNS:hotspot.mydomain.com
I created a (self signed) cert for hotspot.mydomain.com and put in on the MT, set the cert in the hotspot profile and enabled HTTPS Redirect, and then attempts to reach any site upon connection results in a "Connect To Wifi" page in chrome saying that I may be required to visit the login page. When I click the CONNECT button on the page I end up at the same page again. The address bar shows the HTTPS warning (probably that cert doesn't match).
Why is the MT not taking the user to the login page when using HTTPS sites and enable HTTPS Redirect + set SSL cert?
My hotspot setup:
Code: Select all
0 name="My Hotspot" interface=vlan40-guestwifi profile=hs-test idle-timeout=5m keepalive-timeout=none login-timeout=none addresses-per-mac=unlimited proxy-status="running"
Code: Select all
0 * name="default" hotspot-address=0.0.0.0 dns-name="" html-directory=hotspot html-directory-override="" rate-limit="" http-proxy=0.0.0.0:0 smtp-server=0.0.0.0 login-by=cookie,http-chap
http-cookie-lifetime=3d split-user-domain=no use-radius=no
1 name="hs-test" hotspot-address=192.31.249.1 dns-name="hotspot.mydomain.com" html-directory=hotspot html-directory-override="" rate-limit="" http-proxy=0.0.0.0:0 smtp-server=192.31.254.25
login-by=http-chap,https,http-pap ssl-certificate=none https-redirect=yes split-user-domain=no use-radius=no