Seeting up DKIM DNS records from an existing certificate

Posted by jneves on Server Fault See other posts from Server Fault or by jneves
Published on 2011-01-13T11:43:51Z Indexed on 2011/01/13 11:55 UTC
Read the original article Hit count: 358

Filed under:
|
|
|
|

I have successfully setup DKIM with dkimproxy with a self-signed certificate. Now I want to use an existing X.509 certificate. The script that comes with dkimproxy on Ubuntu to generate the DNS records results in the following broken information (only the start):

postfix._domainkey IN TXT "k=rsa; p=-----BEGIN CERTIFICATE----- MIIHCDCCBfCgAwIBAgICP4AwDQYJKoZIhvcNAQEFBQAwgYwxCzAJBgNVBAYTAklM MRYwFAYDVQQKEw1TdGFydENvbSBMdG

This seems broken to me but I haven't found:

  1. what's the format the public.key should be for dkimproxy?
  2. how to extract that information from the certificate file?

© Server Fault or respective owner

Related posts about bind

Related posts about openssl