-
Notifications
You must be signed in to change notification settings - Fork 99
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
Break line in tag signature #196
Comments
@edsonbernar what line breaks do you mean exactly? The string representation of the XML tree is generated by lxml's |
Hi, If you add the code below before 'ctx.sign(signature_node)' then the signature is generated in the correct pattern.
It seems to me that 'xmlsec.template.create()' introduces line breaks throughout the signature node. |
If you mean the line breaks in the base64-encoded signature value, then you can control the maximal line size via import xmlsec
xmlsec.base64_default_line_size(size=4096)
... Otherwise, please provide a reproducible example that illustrates what you mean exactly. |
I already use 'xmlsec.base64_default_line_size' to avoid line breaks in the certificate. |
I tested it and the result was the same. Because of the breaks the 'SignatureValue' is different from other libraries (.Net, Python Signxml) |
Hi,
Is it possible to avoid line breaks in the signature tag that is generated?
Some servers refuse these characters.
Code
The text was updated successfully, but these errors were encountered: