Hi, I'm using openssl 0.9.8a (tarball release) new pkcs12_create
features. I'm creating a pkcs12 object with only a private key. However,
when I try to recover it from PKCS12_parse I always get NULL. I've
downloaded the latest 0.9.8a snapshot (2nd march) and I've still got the
same problem. I am doing anything wrong or is this a bug?

My dummy code looks like: 

EVP_PKEY *pkey, *pkey1;

pk12 = PKCS12_create(pass,"clave",pkey,NULL,NULL,0,0,0,0,0))
if (pk12) 
        if (!PKCS12_parse(pk12,pass , &pkey1,NULL,NULL))
                return err;

---------> rsa = EVP_PKEY_get1_RSA(pkey1)

The execution reach the marked line, but pkey1 is always NULL!

Can anyone help me?
Thanks anyway,
Alicia.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to