Hi, Everyone.

Now i have problem in parsing pkcs12 file.
I'm trying to get private key and certficate from that pkcs12 file.

here is the code i used.

                FILE * fp;

                PKCS12 *p12 = NULL;
                EVP_PKEY *pkey;
                X509 *cert;

                p12 = d2i_PKCS12_fp(fp, NULL);
                PKCS12_parse(p12, NULL/*password*/, &pkey, &cert, NULL);        /* CAs 
not wanted */
                PKCS12_free(p12);

I don't know why..

Please let me know ..
thanks.

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

Reply via email to