XML Digital Signature


Diego Mourglia


I'm trying to Sign an XML Document Using SignedXml.ComputeSignature from the
namespace System.Security.Cryptography.Xml.

I need the XML in the following way, with the prefix DS ahead the tag name:

<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
- <ds:SignedInfo>
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"
- <ds:Reference URI="#1003 Fri Jun 06 14:56:14 VET 2008">
- <ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
+ykN/AHZl8FkLPNokQHE wPuxvo2Y+bMt5N9xG6c=</ds:SignatureValue>
- <ds:KeyInfo>
- <ds:Object Id="1003 Fri Jun 06 14:56:14 VET 2008">
- <Originante_ACH>

I have the same XML but without the ds prefix. Anybody kows how to add it ?


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

executable digital signature 0
Memory use with RSA digital signatures 0
Digitally Sign an XML Doc with X509Certificate Solution :) 2
xml 3
digital sign 0
XML Serialization 0
XML question 1
XML Tables? 1