Apache httpd is unable to start due to SSL Library Error in RHEL 8

Solution Verified - Updated -

Issue

Apache httpd is unable to start. The following log messages were output in logs/ssl_error_log:

[ssl:emerg] [pid 7764:tid 139944079345920] AH02562: Failed to configure certificate 192.0.2.100:443:0 (with chain), check /path/to/mycertificate.crt
[ssl:emerg] [pid 7764:tid 139944079345920] SSL Library Error: error:0909006C:PEM routines:get_name:no start line (Expecting: TRUSTED CERTIFICATE) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
[ssl:emerg] [pid 7764:tid 139944079345920] SSL Library Error: error:140DC009:SSL routines:use_certificate_chain_file:PEM lib
[Wed Aug 28 08:40:50.433220 2019] [ssl:error] [pid 7911:tid 140416078317824] AH02579: Init: Private key not found
[Wed Aug 28 08:40:50.433362 2019] [ssl:error] [pid 7911:tid 140416078317824] SSL Library Error: error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag
[Wed Aug 28 08:40:50.433408 2019] [ssl:error] [pid 7911:tid 140416078317824] SSL Library Error: error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error
[Wed Aug 28 08:40:50.433437 2019] [ssl:error] [pid 7911:tid 140416078317824] SSL Library Error: error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag
[Wed Aug 28 08:40:50.433466 2019] [ssl:error] [pid 7911:tid 140416078317824] SSL Library Error: error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error (Type=RSAPrivateKey)
[Wed Aug 28 08:40:50.433495 2019] [ssl:error] [pid 7911:tid 140416078317824] SSL Library Error: error:04093004:rsa routines:old_rsa_priv_decode:RSA lib
[Wed Aug 28 08:40:50.433521 2019] [ssl:error] [pid 7911:tid 140416078317824] SSL Library Error: error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag
[Wed Aug 28 08:40:50.433548 2019] [ssl:error] [pid 7911:tid 140416078317824] SSL Library Error: error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
[Wed Aug 28 08:40:50.433591 2019] [ssl:emerg] [pid 7911:tid 140416078317824] AH02564: Failed to configure encrypted (?) private key 192.0.2.100:443:0, check /path/to/myprivate.key

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • Apache httpd 2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content