opendkim reporting read private key failed: no start line

Posted by Bob on Server Fault See other posts from Server Fault or by Bob
Published on 2012-11-19T03:11:37Z Indexed on 2012/11/19 5:04 UTC
Read the original article Hit count: 1250

Filed under:
|
|

I've set up keys with the following:

opendkim-genkey -t -s mail -d test.com

The private key (pertinent to this question) contains:

-----BEGIN RSA PRIVATE KEY-----
(some stuff here)
-----END RSA PRIVATE KEY-----

My opendkim.conf contains:

Domain          test.com
KeyFile         /etc/opendkim/dkim.private
Selector        mail

I am then testing with:

opendkim-testkey -d test.com -s mail -k /etc/mail/dkim.public

Yet receive the following error:

opendkim-testkey: PEM_read_bio_PrivateKey() failed
error:0906D06C:PEM routines:PEM_read_bio:no start line

The files exist and have opendkim as the user and group, and adequate permissions. Has anyone any advice?

© Server Fault or respective owner

Related posts about ubuntu

Related posts about postfix