Hello,
I need to sign a document by using a X509 certificate private key. I would like to have the canonicalization algorithm in the SignedInfo to be:
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
However when I sign the document, the canonicalization algorithm is
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
In the signed document everything is as it is supposed to be (I am comparing with another correctly signed document), even the transformation algorithms, however I do not find a way to force the code to use a different canonicalization algorithm. At the
beginning the System.Security was pointing to 2.0 framework, then I changed to 4.5 but no success. Following there is the code I use. Anybody knows how to do it?
X509Certificate2 cert2 ...
Go to the complete details ...