Question
RSA server certificate CommonName (CN) `www.domain.com' does NOT match server name!?
Hi,
My droplet conists of Apache, on centos with virtualmin . Today I updated virtualmin and started getting this error "RSA server certificate CommonName (CN) `www.domain.com' does NOT match server name!" in Apache error logs, I googled it but did not found any suitable answer.
Any pointers would be of great help to me.
Thanks
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
I had this this error after following the instructions in this document:
How To Set Up Apache with a Free Signed SSL Certificate on a VPS
I solved it by adding “ServerName www.mydomainname.com” inside of the VirtualHost as follows:
“`<VirtualHost *:443>
ServerName www.mydomainname.com
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile /etc/apache2/ssl/ssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/private.key
SSLCertificateChainFile /etc/apache2/ssl/sub.class1.server.ca.pem