[xmlsec] Using Root Certificate from MS certificate store

Arda Tekin arda.tekin at softhome.net
Fri Apr 11 02:37:54 PDT 2003


Hi Aleksey,
When I verify xml document, I use xmlSecSimpleKeysMngrLoadPemCert() function to load cert. from a file. But this function reads cert information from a file. I need to get cert. information from database. So is there a way to use a cert. inf. which is a string in memory? 
Aleksey I have a second question, all certificates are stored in ms certificate store in windows. I can obtain a certificate handle from this store:

HCERTSTORE m_hStore = CertOpenStore(CERT_STORE_PROV_SYSTEM_A,
                                        0,
                                        NULL, 
                                        CERT_SYSTEM_STORE_SERVICES,
                                        strStoreName.c_str());

...
..

PCCERT_CONTEXT pCertContext = CertFindCertificateInStore(m_hStore, 
                                                              X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, 
                                                                 0, CERT_FIND_ISSUER_ATTR, &certRDN, NULL);


Can I use this handle or any other information which is obtain from a win32 system in xmlsec library?

Regards,
Arda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.aleksey.com/pipermail/xmlsec/attachments/20030411/8b09a2b3/attachment.htm


More information about the xmlsec mailing list