I have a little probleme with the XMLDSIG.
I must sign an XML file with the WS-Security specification. Actually i use SignedXml class for create my signature, just a part of my xml is signed . I append a Reference in my SignedXml but with the WS-Security specification my Reference Id have an attribute
with "wsu" prefixe and my code generates an error CryptographicException
Element incorrect reference.
I just want sign my xml with the WS-Security specification.
This is my code:
SignedXml signedXml = new SignedXml(doc);
signedXml.SigningKey = certificate.PrivateKey;
KeyInfo keyInfo = new KeyInfo();
signedXml.KeyInfo = keyInfo;
Reference reference = new Reference();
reference.Uri = idValue;
View Complete Post