All,

I am in the process of writing my own XML Signature library in java.  I
am using http://www.aleksey.com/xmlsec/xmldsig-verifier.html to verify
my Signature. For the life of me I am unable to figure out what is
wrong. My DigestValue is verified. (So I am assuming my Canonicalizer is
working correctly, I haven written fully to spec of w3c).

I keep receiving this error.

func=xmlSecOpenSSLEvpSignatureVerify:file=signatures.c:line=346:obj=rsa-
sha1:subj=EVP_VerifyFinal:error=18:data do not match:signature do not
match

I have attached the test.xml for which I am trying to sign the root
element, test-signed.xml which output from my XML Signing library. Also
attached is the X509Certificate in PKCS12 format. The password is
'test'.  Could someone please help me to determine what the issues might
be.

Sean

Attachment: XML Signature Test.p12
Description: XML Signature Test.p12

<?xml version="1.0" encoding="UTF-8"?>
<note>
    <to>Tove</to> 
    <from>Jani</from> 
    <heading>Reminder</heading> 
    <body>Don't forget me this weekend!</body> 
</note>
<note>
    <to>Tove</to> 
    <from>Jani</from> 
    <heading>Reminder</heading> 
    <body>Don't forget me this weekend!</body> 
<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><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>xdEr0XQAeJGVe/khVDgCfyOqIeo=</DigestValue></Reference></SignedInfo><SignatureValue>NTgFTYn75cLC3JQNejasSGWhjyqLZwcoivcCozFeSfSP7QcowL81mtW3TJwAOyKXQ69cq2ezD9+6SK7TYk+tuhc5txzf8xZULMq1hC2EhZpz56fCBw/KDzBnd2KwlrDN8uWMKCNFsXXMHSHrP1bMmPcq7R4gFDfJiU8OelLU4dI=</SignatureValue><KeyInfo><KeyValue/><RSAKeyValue><Modulus>AJWmdLtkjOMnFOUHYcFYhsyZ8G8l557iiSHk0r7Nl/iBK449OYoYD/TtFTYWBpbFRMkxMzhMR/hKhpSwHHz90DwNOjiB4+NcT8x5KrvbgBrVzn5GaSeuE3znc81lztrLUmGXh+wh/LwPOb7ibxIXrnaKa/PE0ohN1hYsaK2codCX</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyInfo></Signature></note>
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to