I need to add multiple signatures to an XML document.
With X509Certificate2 and SignedXML objects, I sign my XML using certificate A (first) and B (second).
When I try to verify, the second signatures is OK, but the first one is not verified.
If I don't add the second signature, the first one is OK.
I found this thread
I tried to add <signatures> element as suggested. I remove the second signature before verifying the first one, but the first one is not OK.
My code below. Any suggestion ?
// _signingKey and _signingKey_2 (AsymmetricAlgorithm) are loaded starting from certificates
XmlDocument _xmlDocument = new XmlDocument();
_xmlDocument.InnerXml = "<ROOT><DETAIL>my details</DETAIL><Signatures></Signatures></ROOT>";
SignedXml _signedXmlDocument = new SignedXml(_xmlDocument);
_signedXmlDocument.SigningKey = _
View Complete Post