Thanks I tried that. But openssl base64 -d -A -in key.b64 -out key.bin does NOT work for exponent 3 keys!!!
How do I convert exponent 3 keys.?? -----Original Message----- From: Dr S N Henson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 10:24 AM To: [EMAIL PROTECTED] Subject: Re: Convert ASCII BER to RSA PRIVATE KEY Sabyasachi Gupta wrote: > > Hi, > > Is there a way to convert single line ASCII BER private key (Base 64 > encoded) to > a RSA PRIVATE KEY file which is recognized by Openssl. > Depends on the format. There's various forms it could be. For a start try converting it to binary form with: openssl base64 -d -A -in key.b64 -out key.bin then try various private key formats: openssl rsa -inform DER -in key.bin openssl pkcs8 -in key.bin -inform DER openssl pkcs8 -in key.bin -inform DER -nocrypt if one of those works without error it should output the key in PEM format. Steve. -- Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/ Personal Email: [EMAIL PROTECTED] Senior crypto engineer, Gemplus: http://www.gemplus.com/ Core developer of the OpenSSL project: http://www.openssl.org/ Business Email: [EMAIL PROTECTED] PGP key: via homepage. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]