RSA certificate configured for SERVER does NOT include an ID which matches the server name
Solution 1:
openssl x509 -in server.crt -noout -subject
Should return the CN the of the certificate. That's the name you have to use in the ServerName directive and to connect to.
Solution 2:
I had the same issue but it was because of another reason. I post it here for future googlers:
on my apache2 config file, instead of having <VirtualHost *:443>
, I had <VirtualHost *:80>
. As soon as I fixed that, the site was back up and running.