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]