RE: pkcs12 error
Yeah, that was the problem. RC2 was disabled in the build. Thanks, -binlu -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dr. Stephen Henson Sent: Tuesday, April 03, 2012 1:59 PM To: openssl-users@openssl.org Subject: Re: pkcs12 error On Tue, Apr 03, 2012, Bin Lu wrote: > Hi, > > When I tried the pkcs12 command (as below) in openssl 1.0.1, it gave me the > following error. > The same command worked fine in openssl 0.9.8d. Any idea? > > $ openssl pkcs12 -export -in test.cer -inkey test.key -out test.p12 > Enter pass phrase for test.key: > Enter Export Password: > Verifying - Enter Export Password: > 3085185856:error:060740A0:digital envelope > routines:EVP_PBE_CipherInit:unknown cipher:evp_pbe.c:186: > 3085185856:error:23077073:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 algor > cipherinit error:p12_decr.c:83: > 3085185856:error:2306C067:PKCS12 routines:PKCS12_item_i2d_encrypt:encrypt > error:p12_decr.c:175: > 3085185856:error:23073067:PKCS12 routines:PKCS12_pack_p7encdata:encrypt > error:p12_add.c:202: > > Has that version of OpenSSL disabled anhy algorithm such as RC2? If not try printing out the value of "cipher_nid" it doesn't like in that function. 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 Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Re: pkcs12 error
On Tue, Apr 03, 2012, Bin Lu wrote: > Hi, > > When I tried the pkcs12 command (as below) in openssl 1.0.1, it gave me the > following error. > The same command worked fine in openssl 0.9.8d. Any idea? > > $ openssl pkcs12 -export -in test.cer -inkey test.key -out test.p12 > Enter pass phrase for test.key: > Enter Export Password: > Verifying - Enter Export Password: > 3085185856:error:060740A0:digital envelope > routines:EVP_PBE_CipherInit:unknown cipher:evp_pbe.c:186: > 3085185856:error:23077073:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 algor > cipherinit error:p12_decr.c:83: > 3085185856:error:2306C067:PKCS12 routines:PKCS12_item_i2d_encrypt:encrypt > error:p12_decr.c:175: > 3085185856:error:23073067:PKCS12 routines:PKCS12_pack_p7encdata:encrypt > error:p12_add.c:202: > > Has that version of OpenSSL disabled anhy algorithm such as RC2? If not try printing out the value of "cipher_nid" it doesn't like in that function. 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 Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Re: pkcs12 error message
You have to provide private key file also along with certificate. It can be within your certificate file w.crt or u can provide the private key file separately using -inkey option. Try using -inkey option Ravi On Wed, 17 Oct 2001, Juan Carlos Albores Aguilar wrote: > i'm trying to create a p12 file from a pem file (a .crt file) and i get > the follow error message: > > openssl pkcs12 -export -in w.crt -out w.p12 -name "micert" > > Error loading private key > 995:error::PEM routines:PEM_read_bio:no start > line:pem_lib.c:662:Expecting: ANY PRIVATE KEY > > i did this where i have the privates keys and nothing, is something > wrong in my instruction???, any clue will help, is there another way to > do this??, thanks. > > juan carlos albores > > __ > Do You Yahoo!? > Make a great connection at Yahoo! Personals. > http://personals.yahoo.com > __ > 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] > __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]