I’ve recently tried to use lets encrypt on an EC2 CentOS package but after going through the process my site is serving a self signed certificate (which is odd as I didn’t generate one).
My OS isn’t officially supported so I got the error: “letsencrypt-auto certonly”
Which ran fine.
I’ve installed mod_ssl and created a VirtualHost with the following in vhost.conf:
<VirtualHost *:443> ServerName pro01.co.uk DocumentRoot /var/www/html/example.co.uk SSLEngine on SSLCertificateFile /etc/letsencrypt/live/example.co.uk/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/example.co.uk/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/example.co.uk/chain.pem </VirtualHost>
I’ve also updated the ssl.conf to include the following:
<VirtualHost _default_:443> # General setup for the virtual host, inherited from global configuration DocumentRoot "/var/www/html/example.co.uk" ServerName example.co.uk:443
However when I connect to the site with https I get an error from my browser “Cant verify the identity” and www.ssllabs.com reports a common name mismatch and shows “ip-123-12-12-12 MISMATCH”. (I’ve changed the IP)
All in all I’m a bit stumped. Any help/advise would be appreciated.