Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have recently purchased an SSL Certificate. The CommonName (CN) of the certificate is www.mydomain.com and has several AlternativeNames such as subdomain1.mydomain.com, subdomain2.mydomain.com etc.

I have installed this on a server using Apache 2.2.17 and mod_ssl, and all works fine, except I am gettings a warning saying:

[warn] RSA server certificate CommonName (CN) `www.mydomain.com` does NOT match server name!?

This is because the ServerName is defined as subdomain1.mydomain.com. The certificate is still valid, but is there anything I can do to remove the warning? Or can I just ignore it?

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Ignore it.

It's doing some very basic validity checks, that would hold true if you weren't using alternate names - a client browser's validity checking is much more robust, and as you know, has no problem with the certificate.

If you have more than one VirtualHost on an SSL port, you'll probably see a warning for that, too. Same deal - it's designed to warn you if something's not making sense for a simple, basic config - but you know that it's working like it's supposed to, so you can disregard.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.