See server name according to SSL certificates

后端 未结 2 2033
無奈伤痛
無奈伤痛 2020-12-31 13:27

I have a problem installing the SSL certificates. The problem i think the server name doesn\'t match the certificate\'s server name.

Here the exact Apache problem:

2条回答
  •  星月不相逢
    2020-12-31 13:49

    I had this warning in ssl_error_log:

    [Wed Dec 11 14:02:41 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Wed Dec 11 14:02:41 2013] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!?
    

    It is because that mod_ssl in CentOS (5.10) came with a default virtualhost which will use the default cert in /etc/pki/tls/certs/localhost.crt....

    I removed the virtualhost section in conf.d/ssl.conf and the warning disappeared after reloading apache.

提交回复
热议问题