Hello!
I'd like to sign part od XML document, i.e. object:
<object id="myId">
<content myattribute1="value1" myattribute2="value2" />
</object>
I tried to do it with xmlsec and envelped signature, but found, that
if I change number of spaces in indents:
<object>
<content myattribute1="value1" myattribute2="value2" />
</object>
verification fails. How can I avoid this ?
This is Signature part:
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="">
<Transforms>
<Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<DigestValue></DigestValue>
</Reference>
</SignedInfo>
<SignatureValue/>
<KeyInfo>
<KeyName/>
</KeyInfo>
</Signature>
JT.