[xmlsec] Retrieving the X509 certificate from a signed XML file.

Jean Cyr jcyr at dillobits.com
Sun Jun 11 12:30:24 PDT 2006


I'm working on am XML signing project. I've successfully adapted sign3.c and verify3.c examples to my purpose and all is working
well.

In my versify function, I need to get access to the X509 certificate so that I can parse it add further constraints by extracting
and verifying a few X509 extensions. How can I cat access to the certificate? I know that the certificate in question is adopted
into the key manager when I call xmlSecDSigCtxVerify , but there seems to be no easy way to retrieve it!

What would be the easiest way to access the X509 object that represents the X509Certificate node of the signed XML file.

Jean Cyr, Dillobits Software




More information about the xmlsec mailing list