Title: ??: How to load a P12 certificate?
Dear Yong Yue
 
It is you again that helps me :D Thousand thanks.
 
But could you please direct me to a documentation about this codes?
 
So that I could understand it more :)
 
Thousand thanks again for your kindness
 
Wish you all the best
 
 

Best regards,
--------------------------------------------
Jordan Cheun Ngen, Chong
INF-4067 Universiteit Twente
Postbus 217
7500 AE Enschede
The Netherlands

Distributed and Embedded Systems (DIES)
--------------------------------------------
Office Phone: +31 53 4894655
Web site: http://www.cs.utwente.nl/~chong
Email Add.: [EMAIL PROTECTED]
============================================

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of YONG.YUE
Sent: Thursday, September 13, 2001 10:54 AM
To: '[EMAIL PROTECTED]'
Subject: ??: How to load a P12 certificate?

just refer to  this code

        // new bio mem area
        m_biopkcs12 = BIO_new_file(szpkcsfile, "rb");
        if(m_biopkcs12 == NULL)
        {
                bError = false;
                goto finish;
        }
        // parse pkcs12
        m_pkcs12 = d2i_PKCS12_bio(m_biopkcs12, NULL);
        if(m_pkcs12 == NULL)
        {
                bError = false;
                goto finish;
        }
        //
        nLen = PKCS12_parse(m_pkcs12, szpkcspasswd, &m_pkey, &m_pcert, NULL);
        if(nLen < 0)
        {
                bError = false;
                goto finish;
        }
        //
        BIO_free_all(m_biopkcs12);
        return true;


> Look at PKCS12_Parse().  You provide it a buffer with the
> PKCS#12 and the password for the private key, and it
> returns an X509 object and a EVP_PKEY object.

Could you please tell me, which document should I look to regards this?
Thanks again for your help. Wish you all the best.

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

Reply via email to