Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Xmldsig validation question

$
0
0

I have a xml signature that needs to be validated. It has the following SignatureInfo:

<SignedInfo><CanonicalizationMethodAlgorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"/><SignatureMethodAlgorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ReferenceURI="#id25a415d3-0a11-11e1-8266-00016c9cc847"Type="http://www.w3.org/2000/09/xmldsig#SignatureProperties"><Transforms><TransformAlgorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"/></Transforms><DigestMethodAlgorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>zaDeegM89/0QicIjiiBKKjCs3oA=</DigestValue></Reference><Reference URI=""><Transforms><TransformAlgorithm="http://www.w3.org/2002/06/xmldsig-filter2"><XPathFilter="intersect"xmlns="http://www.w3.org/2002/06/xmldsig-filter2"xmlns:a="http://e-porezna.porezna-uprava.hr/sheme/zahtjevi/ObrazacTZ/v1-1"xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">here()/ancestor::dsig:Signature[1]/../../a:ObrazacTZ[1]//. | here()/ancestor::dsig:Signature[1]/../../a:ObrazacTZ[1]//@* | here()/ancestor::dsig:Signature[1]/../../a:ObrazacTZ[1]//namespace::*</XPath></Transform><TransformAlgorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"/></Transforms><DigestMethodAlgorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>oSUPjbPFV8PyhQN/Sp3k2LHgd8o=</DigestValue></Reference></SignedInfo><br/><br/><br/>


Can this be validated in .NET 2.0 (or higher)?

It seems that "xml-exc-c14n#WithComments" and "http://www.w3.org/2002/06/xmldsig-filter2" transforms are not supported.

If they are, how can I do the validation? 

If not, are there any external tools, classes etc. ?

Any help appreciated.

 


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>