Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bpair opened this issue Apr 6, 2023 · 2 comments
Open

Comments

@bpair
Copy link

bpair commented Apr 6, 2023

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
Copy link
Author

bpair commented Apr 6, 2023

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());

@zanni
Copy link
Contributor

zanni commented May 30, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants