Skip to main content

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

Summary

This article helps resolve the error received on Apache startup.


User-added image

For Apache (1.3, modSSL), Mandrake Linux 8.1, Redhat 7.1

Problem:

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

Here is the Solution:

Remove the password from the private key by following these command :

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

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.

If you have any questions or concerns please contact the Entrust Certificate Services Support department for further assistance:

Hours of Operation:
Sunday 8:00 PM ET to Friday 8:00 PM ET
North America (toll free): 1-866-267-9297
Outside North America: 1-613-270-2680 (or see the list below)
NOTE: Smart Phone users may use the 1-800 numbers shown in the table below.
Otherwise, it is very important that international callers dial the UITF format exactly as indicated. Do not dial an extra "1" before the "800" or your call will not be accepted as an UITF toll free call.

Country Number
Australia 0011 - 800-3687-7863
1-800-767-513
Austria 00 - 800-3687-7863
Belgium 00 - 800-3687-7863
Denmark 00 - 800-3687-7863
Finland 990 - 800-3687-7863 (Telecom Finland)
00 - 800-3687-7863 (Finnet)
France 00 - 800-3687-7863
Germany 00 - 800-3687-7863
Hong Kong 001 - 800-3687-7863 (Voice)
002 - 800-3687-7863 (Fax)
Ireland 00 - 800-3687-7863
Israel 014 - 800-3687-7863
Italy 00 - 800-3687-7863
Japan 001 - 800-3687-7863 (KDD)
004 - 800-3687-7863 (ITJ)
0061 - 800-3687-7863 (IDC)
Korea 001 - 800-3687-7863 (Korea Telecom)
002 - 800-3687-7863 (Dacom)
Malaysia 00 - 800-3687-7863
Netherlands 00 - 800-3687-7863
New Zealand 00 - 800-3687-7863
0800-4413101
Norway 00 - 800-3687-7863
Singapore 001 - 800-3687-7863
Spain 00 - 800-3687-7863
Sweden 00 - 800-3687-7863 (Telia)
00 - 800-3687-7863 (Tele2)
Switzerland 00 - 800-3687-7863
Taiwan 00 - 800-3687-7863
United Kingdom 00 - 800-3687-7863
0800 121 6078
+44 (0) 118 953 3088