On Thu, Apr 19, 2012, Daniel Doron wrote: > > I have noticed the following command sequence generates Private Key files > with different Header. Is there a reason for this?? You will also notice > that the character count is different. > > The first private key cause our embedded system (not Linux, proprietary) to > choke while the second one was went smoothly. >
Well the first format: > > -----BEGIN PRIVATE KEY----- > Is PKCS#8 PrivateKeyInfo format which is a general format for unencrypted private keys. Wherease this: > > -----BEGIN RSA PRIVATE KEY----- > Is RSAPrivateKey format. Which is an RSA specific format. Utilities that generate private keys in general use the former while algorithm specific ones use the latter. When reading a private key OpenSSL should transparently handle the two formats. You can convert between the two using the pkcs8 or the rsa utility. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org