Compute XML Signature on external Xml document

From: J-P Meunier (fuimens_at_yahoo.fr)
Date: 05/21/03


Date: Wed, 21 May 2003 11:50:43 +0200


Hi all,

I need to make an Xml Signature (System.Security.Cryptography.Xml.SignedXml)
of an XmlDocument and then to include the signature into that XmlDocument.

Example:
    <XmlSign>
         <Identity id="ToBeSigned">
            <Name>myName</Name>
            <Surname>mySignature</Surname>
        </Identity>
        <IdentitySignature>
            *SignedXml*
        </IdentitySignature>
     <XmlSign>

The solution would be to create a SignedXml object and insert it
<IdentitySignature>, to set the correct references and then to compute the
signature. But I can't to that because the XML element of SignedXml can't be
accessed before computing the signature ...

So how can I solve that problem?
Any comment would be appreciated,

Thanks

J-P



Relevant Pages

  • SignedXml.CheckSignature fails
    ... I can't verify the XML Signature I just have generated (in the same ... Here is the SignedXml object I get when I call ComputeSignature: ...
    (microsoft.public.dotnet.security)
  • Re: XML Signature: Does attribute order matter?
    ... is part of an XML signature, does that break the digital signature? ... That depends on the particular signature process. ...
    (comp.text.xml)