A
AK
Hiya,
I need to check what type of canonicalization that was used when an
XML file was signed (if any). Currently I'm trying to do it like this:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.PreserveWhitespace = true;
xmlDoc.Load(mySignedXmlFile);
SignedXml signedXml = new SignedXml(xmlDoc);
string canonicalizationMethod=
signedXml.SignedInfo.CanonicalizationMethod;
However this returns the same result regardless of which method was
used, or even if it's not signed at all. I'm sure I'm doing something
obviously wrong here, can anyone see what?
Many thanks,
AK
I need to check what type of canonicalization that was used when an
XML file was signed (if any). Currently I'm trying to do it like this:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.PreserveWhitespace = true;
xmlDoc.Load(mySignedXmlFile);
SignedXml signedXml = new SignedXml(xmlDoc);
string canonicalizationMethod=
signedXml.SignedInfo.CanonicalizationMethod;
However this returns the same result regardless of which method was
used, or even if it's not signed at all. I'm sure I'm doing something
obviously wrong here, can anyone see what?
Many thanks,
AK