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

Signature does not preserve whitspace which causes interoperability problems #2

Open
bseddon opened this issue Aug 18, 2021 · 0 comments

Comments

@bseddon
Copy link

bseddon commented Aug 18, 2021

The constructor in class XadesSignature that is passed a stream does not enable the option to preserve whitespace when the XML document is created. This means that any signature created which includes whitespace in <SignedInfo> will not pass the check of the <SignatureValue> digest in the method CheckSignature.

The fix is simple: after the XML document instance is created on line 63 add the line:

document.PreserveWhitespace = true;

This flag is already set when the XML document is created in method CreateSignature.

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

1 participant