I’m having a problem with Let’s Encrypt and would like some guidance on how to properly set the SSL certificates for the main domain on my server.
Let’s say my server hostname is srv.domain .com. I went on Webmin Configuration → SSL Encryption and requested certificates for the hostname. All went fine.
Now I want to use domain .com with SSL too. I then requested a certificate for domain .com (with and without www). All went fine too.
However, when I check the SSL certificate in SSL Shopper tool I get the following error:
None of the common names in the certificate match the name that was entered (srv. domain .com). You may receive an error when accessing this site in a web browser. [Learn more about name mismatch errors]
It seems the certificate being used is the one I’ve set for the domain, not the hostname.
I then tried to use the same certificate for the domain and hostname. On the virtual server for domain.com I requested a SSL certificate for the domain (with and without www) and srv. It fails when trying the challenge.
So my question is: how to properly set a let’s encrypt certificate for the the hostname and it’s domain name?
But when you go to the Let’s Encrypt tab, Webmin suggests to request certificate to exposingwot.com and www.exposingwot.com. So you just request a certificate for the domain and everything is going to work?
If you already have your server address approved and working though it’s probably easier to just go to the domain virtual server and request it’s own from Lets Encrypt. Takes 30 seconds and probably be far less headache than going back and reinventing the wheel.
@Gomez_Adams
I have a Let’s Encrypt certificate set for domain.com but the hostname doesn’t work with https. Checking the hostname ssl on SSL Shopper tool, l I get a message that this host is not included in the certificate.