On Sun, Apr 10, 2011 at 4:10 AM, Zico <[email protected]> wrote: > Hi, I have been trying to convert one of my pem file into pkcs12 format with > the command: > > *openssl pkcs12 -export -in *check_key.pem *-out *outfile.pkcs12 -*name > alias > > *But, I am getting the error: > > "unable to load private key > 5957:error:0906D066:PEM routines:PEM_read_bio:bad end line:pem_lib.c:749:" > > I googled for this, but haven't any luck. >
Alas. Google is no substitute for relevant domain knowledge. In crypto PKCS12 is the standard for signatures and certificates. And PEM is base64 encoded data. In order for this conversion to work you require to provide a private key to decrypt and re encrypt. BIO stands for Basic I/O which is used by OpenSSL for all I/O operations. You have to provide the private key using one of OpenSSL switches like -key or something. And you have to provide the password with which you encrypted your private key. Usually private keys are encrypted. OpenSSL is no joke as it contains all the aspects of crypto. It used to be the only free crypto tool till OpenSSH came along but even now OpenSSH does not provide many things that OpenSSL provides. In fact it is built on top of OpenSSL. -Girish -- G3 Tech Networking appliance company web: http://g3tech.in mail: [email protected] _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
