Matthieu BONETTI wrote:
> The thing is I need to
> import a specific certificate from "Certificate Store" 
> on Microsoft Windows and dump it into SSL_CTX_use_certificate_chain_file
> (or an equivalement function). 

I think you can use d2i_X509() and X509_STORE_add_cert()

I used crypoapi to get a cert from Windows certificate stores.
CertOpenStore(), CertEnumCertificatesInStore()
Then this line (Delphi):   
X509 := d2i_X509(nil, @pCertContext.pbCertEncoded,   
pCertContext.cbCertEncoded);

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

Reply via email to