signxml icon indicating copy to clipboard operation
signxml copied to clipboard

Support for InclusiveNamespaces for method = enveloped

Open mdonnie17 opened this issue 5 years ago • 1 comments

For method = enveloped, current XMLSigner.sign() does not add InclusiveNamespaces. It will then fail when calling XMLVerifier.verify()

current: ds:Transforms <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </ds:Transforms>

Proposed: ds:Transforms <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> <ec:InclusiveNamespaces PrefixList="xs" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/> </ds:Transform> </ds:Transforms>

mdonnie17 avatar Oct 09 '20 20:10 mdonnie17

I'm hitting this same problem

ARolek avatar Nov 20 '20 15:11 ARolek