This content has been marked as final. Show 1 reply
user13461536 wrote:These line breaks should be properly normalized by a standards-compliant canonicalizer. However, if you are using JDK 7, try setting the following property which will eliminate the line breaks when you generate the signature:
I am using the javax.xml.crypto.dsig.XMLSignatureFactory to generate XML Signatures. Now when I try to validate the generated signature with java, the validation succeeds, however when I attempt the validation with .NET the validation fails.
Java adds a break line after the 76th character to produce separate lines. On the other hand .NET does not exhibit this behavior.
java -Dcom.sun.org.apache.xml.internal.security.ignoreLineBreaks=true ...