.NET, Can't sign XML with a x509 cert
I have to sign a XML message for a specific API with a provided cert-charn, but using the .NET implementation that API returns and error that signature was "tampered with". In my other question I mentioned that I used OpenJDK classes from the IKVM, which worked. 

But I want make this a pure .NET solution.
I analyzed both signatures generated by the .NET and Java implementations. The difference is that all of the certificates in x509 info tags are formatted in a Java(working) version. New lines and white spaces. 

The .NET Signatures are in a one big line. The API is old so maybe this is the case? Is there a way to make the SignedXML class format the certificates?
.NET, Can't sign XML with a x509 cert
===

I have to sign a XML message for a specific API with a provided cert-charn, but using the .NET implementation that API returns and error that signature was "tampered with". In my other question I mentioned that I used OpenJDK classes from the IKVM, which worked. 

But I want make this a pure .NET solution.
I analyzed both signatures generated by the .NET and Java implementations. The difference is that all of the certificates in x509 info tags are formatted in a Java(working) version. New lines and white spaces. 

The .NET Signatures are in a one big line. The API is old so maybe this is the case? Is there a way to make the SignedXML class format the certificates?