Question

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

Posted August 27, 2013 54.8k 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

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.

×
8 answers
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.
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.
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!
:) ha ha. @kamal & @Pablo
Submit an Answer