Hi all,
I've installed openssl 0.9.8a version and I'm using new features from
pkcs12_create (cert maybe null). Everytime I call PKCS12_parse it
transforms pkey address into 0x0, so it's impossible to recover values
from pk12 object. I've searched some example codes and they seem the
same as mine, but...

For the moment, my code looks like:

        
        EVP_PKEY *pkey, *pkey1;  
        
     pkey = EVP_PKEY_new();
     if (EVP_PKEY_assign_RSA(pkey, rsa) == 0) {  
           EVP_PKEY_free(pkey);
           return NULL;
     }
     if ((pk12 = PKCS12_create(pass,"clave",pkey,NULL,NULL,0,0,0,0,0))
== NULL) {
        EVP_PKEY_free(pkey);
        return NULL;
     }

        ... [other things]

     pkey1 = EVP_PKEY_new();
     if (PKCS12_parse(pk12,pass , &pkey1,NULL, NULL) != 1)   
         return 1;
     
     if ((rsa = EVP_PKEY_get1_RSA(pkey1)) == NULL)
         return 1;
     
Any idea???
Thanks,

Alicia Asín


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to