1

I'm trying to generate SignedXML with dsig prefix (which I have managed to do thanks to George Dima's answer in xml signature DS prefix?).

The problem is that the CheckSignature method is now returning false - I am thinking that this method may also need to be overridden just like the ComputeSignature method was however I am lost on how to do that.

Does anyone have a complete answer on how to generate SignedXML with prefix but that can also be verified with CheckSignature please?

I can assure you that I've gone through all related posts about this topic but I haven't come across any that provide a complete solution:

.NET doesn't support non-standard XMLDSIG signature element names

Generating xml signature with "ds" prefix

Generating XADES-BES with “ds” prefix

Generating xml signature with "ds" prefix

.NET Signed XML Prefix

Thanks!

Community
  • 1
  • 1
  • Dis you change this line XmlNodeList nodeList = xmlDocument.GetElementsByTagName("Signature") to XmlNodeList nodeList = xmlDocument.GetElementsByTagName("ds:Signature")? – Louise Eggleton Oct 09 '14 at 21:55
  • Hi Louise, yes I did do that ... still same issue – user4121263 Oct 10 '14 at 15:09
  • I am trying to do the same thing: Add ds to sig and have seen George Dima's post and am going to try it later today. I'll let you know. I don't think you should have to change CheckSignature because what if it needs to be checked by an external party as it is in my case? This should work without having to change CheckSignature. – Louise Eggleton Oct 10 '14 at 16:40
  • Have you managed to get anywhere with that solution @LouiseEggleton? – user4121263 Oct 15 '14 at 14:01
  • I managed to talk the vendor into changing their end, but I am still curious as to how to do this, so I will have a look this evening. – Louise Eggleton Oct 15 '14 at 15:35

0 Answers0