Skip to main content

Apache SSL Errors for self-signed certificates

Comments

4 comments

  • nesta
    We are are having the same problem. We attempted to upgrade from Apache 2.2.27 to 2.4.9 and the upgrade failed due to a self-signed certificate that wouldn't load. [Tue Apr 01 17:38:03.002247 2014] [ssl:emerg] [pid 29768] AH02562: Failed to configure certificate example.com:443:0 (with chain), check /var/cpanel/ssl/installed/certs/xxx.crt [Tue Apr 01 17:38:03.002404 2014] [ssl:emerg] [pid 29768] SSL Library Error: error:0906D06C:PEM routines:PEM_read_bio:no start line (Expecting: DH PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile? [Tue Apr 01 17:38:03.002443 2014] [:emerg] [pid 29768] AH00020: Configuration Failed, exiting
    We deleted the SSL configuration on that site and the upgrade succeeded. After the upgrade we tried to add a new self-signed certificate to the site but then Apache wouldn't start with the same error as above. One data point is that we had another certificate causing this same problem first, but signed by Thawte instead of self-signed. We found that our other certificates had the intermediate CA bundle configured with SSLCACertificateFile, but this particular one didn't. Deleting the certificate in cPanel and adding it back, including the CA Bundle, fixed the issue for that certificate. Both the problem Thawte certificate and the self-signed one were working fine in Apache 2.2.27 prior to the upgrade.
    0
  • cPanelPeter cPanel Staff
    Hello, Please open a support ticket using the link in my signature. One of our analysts will review this for you and if it's determined to be reproducable will file a case with development on this.
    0
  • dezignguy
    Opened support ticket, Id 4760773.
    0
  • dezignguy
    Kudos to Cpanel Support. They've diagnosed the issue and opened a ticket for the development team to look at it. And they also got a workaround for me in the meantime. [QUOTE]Please be aware that you will need to remove your original self-signed certificate installed host(s) before continuing here: I found that the error that is being generated is due to Apache 2.4.9 not seeing the certificate chain as valid. However, if you take the contents of the self-signed certificate in the "Certificate" box and paste these contents into the "Certificate Authority Bundle (optional)" box when installing the certificate, this should allow the chain to complete and register with Apache 2.4.9 as valid.
    This issue only happens on CentOS 5.10, not on CentOS 6.5. But it apparently is not only restricted to self-signed certificates, as it seems that 3rd-party signed certs without a ca-bundle are also caught. The internal case is #96229, if anyone is interested in knowing when it is fixed and shows up in the changelogs.
    0

Please sign in to leave a comment.