[xmlsec] How to find the signing certificate?

Erwann Abalea erwann.abalea@certplus.com
Thu Apr 15 16:13:02 PDT 2004


Hello,

I'm still gaining XP points by playing with xmlsec. ;)
I'm facing a new challenge. When I verify a signature and the
corresponding X509 certificate, I need to get the certificate used to
perform the signature. The goal is to add it to the keys manager, to later
encrypt data for this entity.
I found that by searching into signNode (defined here as:
signNode =3D xmlSecFindNode(xmlDocGetRootElement(doc), xmlSecNodeSignature,=
 xmlSecDSigNs);
), I can find the "KeyInfo" node, then go below and search for the
"X509Data" node, then below and search for the "X509Certificate" node, and
get its content. Is that the only way to do it? Isn't there a readily
written function to perform the same task?

If not, it's OK, I just would like to know...

Thanks.

--=20
Erwann ABALEA <eabalea@certplus.com> - RSA PGP Key ID: 0x2D0EABD5
-----
DM> J'arrive seulement sur ce groupe de discussion .Que faut il faire ?
Rien, il n'y a absolument rien d'autres =E0 faire que taper son message en
r=E9pondant au groupe, ou pourquoi pas un nouveau message. Rien d'autres
-+- E in Guide du Neuneu Usenet - Mais o=FB ce qu'il est-il donc ? -+-



More information about the xmlsec mailing list