RE: d2i_PrivateKey_bio() failed

From: Murray S. Kucherawy <>
Date: Wed, 21 Mar 2012 17:55:04 +0000

Looks like your private key file is corrupt. The function that failed attempts to read it into memory and prepare it for use by other functions, but that failed. It did get as far as reading data from the file, however, and determined that it was not a key in PEM format. If you followed the steps in that blog post, then the keys should indeed be PEM-formatted, so something went wrong somewhere in there.

I suggest repeating the key generation and installation step.


From: [] On Behalf Of Tim Fluhr
Sent: Wednesday, March 21, 2012 10:44 AM
Subject: d2i_PrivateKey_bio() failed

Hello everyone.

I'm having a couple problems getting opendkim configured properly.

I've followed the instructions located at

When I try to send mail from the command line I get the following errors in my mail.log

Mar 21 10:53:26 hostname opendkim[1933]: 4C22B1C2A3D: dkim_eom(): resource unavailable: d2i_PrivateKey_bio() failed

Mar 21 10:53:26 hostname postfix/cleanup[1951]: 4C22B1C2A3D: milter-reject: END-OF-MESSAGE from localhost[]: 4.7.0 resource unavailable; from=<<>> to=<<>>

Mail will not send until I stop the opendkim service. Once the service is stopped mail will send, but will not be signed.

Thanks for the help.

Received on Wed Mar 21 2012 - 17:55:12 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:38 PST