[xmlsec] Using Root Certificate from MS certificate store
Arda Tekin
arda.tekin@softhome.net
Fri, 11 Apr 2003 12:37:54 +0300
This is a multi-part message in MIME format.
------=_NextPart_000_00C2_01C30027.2C4D8BF0
Content-Type: text/plain;
charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable
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?=20
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 =3D CertOpenStore(CERT_STORE_PROV_SYSTEM_A,
0,
NULL,=20
CERT_SYSTEM_STORE_SERVICES,
strStoreName.c_str());
...
..
PCCERT_CONTEXT pCertContext =3D CertFindCertificateInStore(m_hStore,=20
=
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,=20
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
------=_NextPart_000_00C2_01C30027.2C4D8BF0
Content-Type: text/html;
charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-9">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Aleksey,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>When I verify xml document, I use=20
xmlSecSimpleKeysMngrLoadPemCert() function to load cert. from a file. =
But this=20
function reads cert information from a file. I need to get cert. =
information=20
from database. So is there a way to use a cert. inf. which is a string =
in=20
memory? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Aleksey I have a second question, all =
certificates=20
are stored in ms certificate store in windows. I can obtain a =
certificate handle=20
from this store:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>HCERTSTORE m_hStore =3D=20
CertOpenStore(CERT_STORE_PROV_SYSTEM_A,<BR> =
&=
nbsp; &n=
bsp; 0,<BR>&nb=
sp; =20
=
=20
=
=20
NULL, <BR> =20
=
=20
=
=20
CERT_SYSTEM_STORE_SERVICES,<BR> =20
=
=20
=
=20
strStoreName.c_str());</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>PCCERT_CONTEXT pCertContext =3D=20
CertFindCertificateInStore(m_hStore, <BR> =20
=
=20
=
=20
=
=20
X509_ASN_ENCODING |=20
PKCS_7_ASN_ENCODING, <BR> &=
nbsp; &n=
bsp; &nb=
sp; &nbs=
p;  =
; 0,=20
CERT_FIND_ISSUER_ATTR, &certRDN, NULL);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> </DIV>
<DIV> </DIV>
<DIV>Can I use this handle or any other information which is obtain from =
a win32=20
system in xmlsec library?</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Arda<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_00C2_01C30027.2C4D8BF0--