private key format/transform to standard format in OpenSSL

Reza Curtmola crix at cs.jhu.edu
Fri Jul 8 20:02:25 UTC 2005


Is there a way to convert an RSA private key generated with
'dnssec-keygen' into a DER/PEM encoded key that is recognized by OpenSSL ?
(e.g. using header and footer lines
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----)

The only way I can think of is to write a program that uses the BIND
library to read the private key from a file into a structure and then uses
the OpenSSL library to save it PEM encoded into another file.

Is there an easier way to do this?




More information about the bind-users mailing list