opendkim reporting read private key failed: no start line
- by Bob
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?