1. Home
  2. Backup, Security & Performance
  3. SSL & Signing Certificates
  4. What is this error – “RSA server certificate CommonName (CN) ‘www.domain.com’ does NOT match server name”?
  1. Home
  2. Backup, Security & Performance
  3. SSL & Signing Certificates
  4. What is this error – “RSA server certificate CommonName (CN) ‘www.domain.com’ does NOT match server name”?

What is this error – “RSA server certificate CommonName (CN) ‘www.domain.com’ does NOT match server name”?

This error may be displayed whilst starting Apache-

  • To solve this error please follow the steps given below.

ServerName www.domain.com:443
DocumentRoot /home/directory/html
SSLEnable
SSLCertificateFile /www.domain.crt
SSLCertificateKeyFile /www.domain.key

  • The VirtualHost example below is the correct method of using an SSL enabled VHost.
  • As you can see :443 has been removed from the ServerName parameter.


ServerName www.domain.com
DocumentRoot /home/directory/html>/code>
SSLEnable
SSLCertificateFile /www.domain.crt
SSLCertificateKeyFile /www.domain.key

Updated on February 8, 2019

Was this article helpful?