RSA server certificate CommonName (CN) `www.domain.com' does NOT match server name!?

August 27, 2013 29.2k views
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
1 comment
8 Answers
what's your server's name?
Do you want to know the domain name or the droplet name @Pablo
Execute hostname -f to see if your droplet's FQDN matches what's in the certificate.
How did you create the SSL cert? You have to put your domain name you're going to use the SSL cert on in the CN field. If it's a self-signed certificate, you should just create a new SSL cert.
Thanks for your reply @Pablo & @kamal. but there is no error now. I just cannot understand why?
Earlier I was not getting this error, but after updating virtualmin I started getting this error.

By the way SSL is a paid SSL certificate from Godaddy.
Now rebooted the system and there is no error.

Thanks for all your help.
Glad to hear it's fixed :]
"Now rebooted the system and there is no error."

You'd be surprised how many people waste time troubleshooting an issue, only to realize that the simple task of a reboot was all that was needed. It's happened to me countless times!
Have another answer? Share your knowledge.