but when I try to activate it pasting the content of certificate-request.pem as csr, I get this error: “Domain name is invalid or contains a typo. Please use only a-z, 0-9, dot or hyphen in CSR domains”
You need a FQDN to be able to get a valid CA signed cert. Namecheap isn’t going to allow you to sign “myCa” since you have no proof of ownership over that name.
If you’re running 6.40.1 your router may already be compromised as you have not installed critical security patches, you should update ASAP and check for signs of compromise (modified DNS, additional users, VPN tunnels, etc).
You use testssl.sh from any Linux system and test it against your hotspot. If your hotspot is publicly reachable you can also post the link here for testing.
I upgraded to v6.42.3 and now when I connect to the hotspot and the popup opens, I get this warning:
Untrusted SSL certificate
The security certificate for this network does not come from a trusted authority. The connection to this is not recommended.
Unfortunately I don’t have a linux installation, I tried with a live version but unsuccesfully. Is there a windows equivalent?
That message means the .crt you supplied to the hotspot wasn’t signed properly. Make sure it’s the certificate you got from namecheap and not one generated by RouterOS.
You can also link the .crt file here and I can take a look. Make sure you never post the private key though!
There seems to be a missing intermediary cert, I’m not entirely sure how RouterOS handles this but try importing the following instead (I added the intermediate cert to the chain). uala_datalit_intermediate.txt (4.31 KB)
Then I selected the certificata in services and in hotspot, but now I get
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
maybe I should buy a certificate from a provider indicated in the wiki such as rapidssl, godaddy, register, opensrs, thawte, but they are more expensive and there are lot of possibilities, which one should I buy?
Any signed cert should be fine, price is not important, even a free one from Let’s Encrypt should work.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH seems to indicate either the hotspot or your browser isn’t using modern protocols / ciphers. I don’t know if there are any options in RouterOS, but make sure to disable SSL 2.0 / SSL 3.0 and only use TLS 1.0 / 1.1 / 1.2.
Hi all, @Michele did you later resolve this issue?
I also want to purchase SSL certificate from namecheap and will really appreciate if there can be a comprehensive guide on how to really go about getting a trusted signed SSL certificate on a LAN Hotspot. I already have a domain with namecheap abcdomain.com and my LAN hotspot DNS name is hotspot.abcdomain.com.
Any guidance will be highly appreciated.
Below are instructions from namecheap.
in order to secure your website, it is necessary to obtain an SSL certificate and complete all the required steps:
CSR code generation
SSL certificate activation
SSL certificate validation
SSL certificate installation
Due to the security reasons, it is recommended to generate the CSR code on your hosting server.
However, you can use any online tool instead. You are welcome to generate the CSR code using this online tool: > https://decoder.link/csr_generator
Once the CSR code is generated, you will see the pop-up window with 3 tabs: “CSR”, “Private key” and “Certificate”.
The first “CSR” tab contains your CSR code that includes the following tags: “-----BEGIN CERTIFICATE REQUEST-----" and “-----END CERTIFICATE REQUEST-----”.
On the second “Private key” tab, there will be your private key. Your private key should begin with: -----BEGIN RSA PRIVATE KEY----- and end with: -----END RSA PRIVATE KEY-----
Please keep in mind that it is necessary to save the private key in order order to use it for the SSL certificate installation.
The third “Certificate” tab you will see a self-signed SSL certifcate that should not be used instead of your Comodo SSL certificate.
Please copy your CSR code and paste it into the “CSR” field on the fist step of activation in order to activate the certificate.
Please keep in mind that once the activation and validation are completed and the certificate is issued by Comodo, it is necessary to install the SSL certificate on your hosting server.
If your redirection is doing a re-direct when someone opens https://www.google.com then yes, it will warn the user because you are not google.com..
The error will be be domain mis-match though.
The newer OSs, mobile and Windows 10 (not sure about MacOS), pop up an alert now when connecting to Hotspots that require authentication, ‘tap here to authenticate’, then it opens the webpage for the AP to ‘accept’ or ‘enter code/password’. I have no idea how to use this feature though. I don’t know the back-end process though. Likely documented somewhere. haha
Get your certificate imported correctly, you should be able to access the hotspot page with no errors using the domain your certificate it for. After that, look into that process. Just opening your browser’s homepage, yes, that will still cause a name mismatch.