Entrust Datacard

Entrust Certificate Services Support Knowledge Base

Last Modified: 2016-07-05 16:20:14.0

Why do I receive the error "[error] mod_ssl: Init: Private key not found"?

Article Number: 45646

Symptom:
Error: "[error] mod_ssl: Init: Private key not found (OpenSSL library error follows)
[error] OpenSSL: error:0D084069:asn1 encoding routines:d2i_ASN1_SET:bad tag [error] OpenSSL:
error:0D09D082:asn1 encoding routines:d2i_RSAPrivateKey:parsing [error] OpenSSL: error:0D09B00D:asn1
encoding routines:d2i_PrivateKey:ASN1 lib"
Error: [error] mod_ssl: Init: Private key not found
Error: Private key not found

Cause:
Apache is unable to read the password protected private key

Resolution:
Remove the password from the private key by following these commands :

openssl rsa -in file1.key -out file2.key

file2.key will contain your unencrypted key. If you now point your server at this key file, it will
not prompt you for a pass phrase.

This applies to: (Includes, but not limited to)
Apache
Apache: 1.3
Apache modSSL
Mandrake Linux 8.1
Redhat 7.1
Certificate file corresponds to the Private Key file on the web server

Note:
If anyone gets the unencrypted key, they will be able to impersonate you (keys create your identifying digital signature). Please make sure the permissions on that file allow only 'root' or 'web server user' to read it. Preferably start your web server as root, but run as another server, and have the key readable only by root.

TN5894

Affected Products:

  • Entrust Certificate Services 1 Year Advantage SSL Certificate Version Not Applicable Language Not Applicable Platform Not Applicable
  • Entrust Certificate Services 1 Year SSL Certificate Version Not Applicable Language Not Applicable Platform Not Applicable
  • Entrust Certificate Services 2 Year Advantage SSL Certificate Version Not Applicable Language Not Applicable Platform Not Applicable
  • Entrust Certificate Services 2 Year SSL Certificate Version Not Applicable Language Not Applicable Platform Not Applicable
  • Entrust Certificate Services Cert Admin Advantage Server Certificate 1 Year Version Not Applicable Language Not Applicable Platform Not Applicable
  • Entrust Certificate Services Cert Admin Advantage Server Certificate 2 Year Version Not Applicable Language Not Applicable Platform Not Applicable
  • Entrust Certificate Services Enhanced Service Account Version Not Applicable Language Not Applicable Platform Not Applicable