How to fix RSA server certificate CommonName (CN) does NOT match server name error in Apache HTTPD
Issue
- Apache does not start without first unloading
mod_ssl
. -
Apache logs the following warning message when starting apache server.
[Tue Feb 09 15:06:23 2010] [warn] RSA server certificate CommonName (CN) `<host_name>' does NOT match server name!?
-
Apache will not start and the following messages are written:
[Wed Jun 05 16:23:21 2013] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!? [Wed Jun 05 16:23:21 2013] [error] Unable to configure RSA server private key [Wed Jun 05 16:23:21 2013] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch`
Environment
- Red Hat Enterprise Linux (RHEL)
- Red Hat Software Collections (RHSCL)
- Red Hat JBoss Core Services (JBCS)
- Apache Web Server (httpd)
- mod_ssl
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.