Forum Moderators: phranque
I created two self signed certs, one for localhost (server.crt) and one for for my domain (www.mydomain.com.crt). And added them both to conf/ssl directory, and made the appropriate changes to ssl.conf and httpd.conf.
So when I have
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile conf/ssl/server.crt
SSLCertificateKeyFile conf/ssl/server.key
</VirtualHost>
Everything works great for localhost https.
But when I cahnge it to:
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile conf/ssl/www.mydomain.com.crt
SSLCertificateKeyFile conf/ssl/www.mydomain.com.key
</VirtualHost>
Apache fails to start. I made the change in both ssl.conf, and httpd.conf. I also tried to spell it incorrectly, just so I could get an error message telling me the cert doesn't exist, but when it's all there and existing apache fails with no message. Any idea on what the problem could be?
So now it starts up. With a new problem. [domain.com...] works, and [domain.com...] comes up with "cannot display this page" error. But [localhost...] works just fine.
I'm at a loss here. I am getting a warning, but I'm not sure how to fix it.
The ServerName is www.domain.com, but the error states:
RSA server certificate CommonName (CN) `www.domain.com' does NOT match server name!?