I implemented a radius authentication system for my personal hotspot several years ago (2018).
basically it worked fine until the OVH went on fire!
It worked without https.
now i was restoring everything on a new vps and i wanted to implement the HTTPS connection.
on the new vps i installed apache2 and the let's encrypt certificate. browsing with chrome there are no errors.
i tried to import the same certificate on mikrotik but nothing changes.
basically, i can't figure out what i have to put in the hotspot profile -> DNS name field.
I have noticed that this step is crucial for the redirect to work. but i didn't understand how it works. can someone help me?
thank you
I am attaching the content of the login.html page that I loaded in mikrotik and that has always worked (without https):
Code: Select all
<html>
<head><title>...</title></head>
<body>
$(if chap-id)
<noscript>
<center><b>JavaScript required. Enable JavaScript to continue.</b></center>
</noscript>
$(endif)
<center>If you are not redirected in a few seconds, click 'continue' below<br>
<form name="redirect" action="https://xxx.xxx.ovh/hotspot/login.php" method="post">
<input type="hidden" name="mac" value="$(mac)">
<input type="hidden" name="ip" value="$(ip)">
<input type="hidden" name="username" value="$(username)">
<input type="hidden" name="link-login" value="$(link-login)">
<input type="hidden" name="link-orig" value="$(link-orig)">
<input type="hidden" name="error" value="$(error)">
<input type="hidden" name="chap-id" value="$(chap-id)">
<input type="hidden" name="chap-challenge" value="$(chap-challenge)">
<input type="hidden" name="link-login-only" value="$(link-login-only)">
<input type="hidden" name="link-orig-esc" value="$(link-orig-esc)">
<input type="hidden" name="mac-esc" value="$(mac-esc)">
<input type="submit" value="continue">
</form>
<script language="JavaScript">
<!--
document.redirect.submit();
//-->
</script></center>
</body>
</html>