Hello,

I want to read out a private key from a *.p12 file into a structure. The private key 
schould be in 
the same unencrypted form as in the certificate file. I have tried this with the 
function

EVP_PKEY *privat_key=NULL;
privat_key = d2i_PrivateKey_fp(cert_file, NULL);

but I get an error in the function d2i_RSAPrivateKey(). In this function it failes 
when reading the 
modulus of the public key.

Is the way i'm doing correct and is there something with the certfile?
Or is the way I'm doing wrong?

Best regards

Jan

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

Reply via email to