OpenADR icon indicating copy to clipboard operation
OpenADR copied to clipboard

XML Signature element is after signedObject in response which is not valid

Open bpair opened this issue 2 years ago • 2 comments

Is anybody still using this project? It is really impressive. I was trying to use an OpenLEADR VEN with this running as a VTN but getting xml signature issues. I noticed in the response the order violates the schema.

bpair avatar Apr 06 '23 15:04 bpair

This is a quick fix in OadrXMLSignatureHandler: DOMSignContext dsc = new DOMSignContext(privateKey, oadrPayloadNode); // manipulate java signature generation to conform to oadr expectation dsc.setDefaultNamespacePrefix("xmldsig"); dsc.setNextSibling(oadrPayloadNode.getFirstChild());

bpair avatar Apr 06 '23 21:04 bpair

Hi,

Sorry I do not have time right now to maintain and upgrade this project but feel free to push a merge request and I will merge it into master.

zanni avatar May 30 '23 18:05 zanni