Hi I’ve an xml file signed with a private-key, when I take sha1-sum of field <greet xml:id="world">hello</greet>
its getting verified but when i try to verify signatureValue by signing above data with the same key using openssl, it’s not matching, I tried signing digest & actual data, any help?
document is getting verified normally with a public key.
<?xml version="1.0"?>
<envelope>
<id>1234</id>
<greet xml:id="world">hello</greet>
<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="#world">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>D5AnZ0DBBraNTkNrDSKUxZCR0QU=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>A9P1IxdCM4LoD53hRJjzmdOSPqFhld4sgtXthM2PMsGura9XwvcqUNMLFa6Df8b+
BLUB7OVuzsyIlulvyvRUsmv5L9SyBdTSy5yzDpQK+Lua7wKsX65jq3wUSpH/E4Ej
boKTHirDQMGvYEndpX4pev/mZAwpnDsJfgD0SBrvFnUZjFMpsImXT9wW6H3GNTTH
MF4ks7WDuAJvTtp5xVg5tuL7h8e35M6gWrNr7x5ED1Tpy7gXkAtq6xL3L44BJ1uo
sqPyWMEaq18SauzNLX/+KgyXByqid9K8p5xq4I8tWoF6YQ8JkXHvK8kEkjdPfaOq
QXQyfgT/JhGjaZC7AIxXZQ==
</SignatureValue>
</Signature>
</envelope>