[xmlsec] xPath namespace issue

Aleksey Sanin aleksey at aleksey.com
Tue Apr 3 09:27:12 PDT 2007


> 
> 
> When I verify, I am aware that I will use the X509Certificate node for
> verifying but I also want to parse the X509Certificate separately and
> confirm it is the certificate I expect - the way I am doing this uses
> XPath and I believed I could search for //X509Certificate however this
> yields no results.
> 

You are forgetting about namespaces:

http://xmlsoft.org/examples/index.html#XPath
http://xmlsoft.org/html/libxml-xpathInternals.html#xmlXPathRegisterNs

BTW, the certificate used to verify the signature is
available in the key object returned in the xmlDSigCtx
structure.


Aleksey





More information about the xmlsec mailing list