Skip to content

Add implicit C14N when signing if no transforms specified #503

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roc13x
Copy link

@roc13x roc13x commented May 2, 2025

When signing, the library currently does not apply any canonicalization to the referenced document being signed, unless explicitly specified in the transforms config property.

This behaviour differs from many other XML signature libraries such as javax.xml.crypto.dsig and signxml, who implicitly apply http://www.w3.org/TR/2001/REC-xml-c14n-20010315 if the user does not specify any canonicalization transforms.

This PR proposes adding the same implicit canonicalization behaviour, to make the output more consistent with other implementations.

Related issues: #210 #212 #484 #486

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

Successfully merging this pull request may close these issues.

1 participant