Sabyasachi Gupta wrote: > > I do not know how to line wrap properly.. > Please let me know if there is a way to do that. > I am attaching the key.b64 file which I want to convert into > a RSA_PRIVATE_KEY pem file after the series of steps u mentioned. > > ie. > openssl base64 -d -A -in key.b64 -out key.bin > openssl pkcs8 -in key.bin -inform DER -nocrypt > > Thanks a lot again..This is really urgent for me. >
The base64 encoded file contains some illegal characters: it has \=\== in the middle of there for some reason: '=' can only occur at the end. When these are deleted from the middle it can be converted to a binary file. However the result is not a private key its a public key. It can be read with: openssl rsa -in key.bin -inform DER -pubin 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]
