I installed an SSL certificate (generated with openssl) on a server running Apache 2.2. After refreshing the config, I saw the site work properly.
However, this morning I discovered that the site was down. After a quick look at the logs, I noticed that Apache was not running and I was not able to restart it.
There were the following errors in the ssl.log
[Tue Oct 10 14:58:48 2017] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Oct 10 14:58:48 2017] [warn] RSA server certificate CommonName (CN) `AddTrust External CA Root' does NOT match server name!?
[Tue Oct 10 14:58:48 2017] [error] Unable to configure RSA server private key
[Tue Oct 10 14:58:48 2017] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
Could anyone tell me why this happened? That is, the site worked for several days after the initial configuration. However, at a certain point it broke. How can I troubleshoot this?
openssl x509 -noout -text <file
displays the details of a cert in a PEM file (but only one cert!)