[xmlsec] Problem in verifying XML signature
aLexwU
alexwu at hyweb.com.tw
Tue May 4 00:52:08 PDT 2004
Hello,
There is one strange case.
By using xmlSec, I was failed to verify XML signature with error 'signature do not match' returned.
But it can be successful verifyed by using other software. (http://www.infomosaic.net/XMLSign/SecureXMLVerifyWS.htm)
I modified the example code (verify3.c) to do this task.
The message is 3-D secure message, I add the needed code according the FAQ 3.1, 3.2.
I've successful to verify other messages. But just only this one is failed .
Do I lost something?
Thanks.
aLexwU.
testing message:
<ThreeDSecure>
<Message id="PAReq20040504000723bMiUUBqRm">
<PARes id="PARes11333">
<version>1.0.2</version>
<Merchant>
<acqBIN>11111111111</acqBIN>
<merID>12AB,cd/34-EF -g,5/H-67</merID>
</Merchant>
<Purchase>
<xid>MTkzOTExMzkwMDEyMzQ1Njc4OTA=</xid>
<date>20030919 12:10:43</date>
<purchAmount>123456</purchAmount>
<currency>840</currency>
<exponent>2</exponent>
</Purchase>
<pan>0000000000000771</pan>
<TX>
<time>20030919 14:19:18</time>
<status>Y</status>
<cavv>AAABASOUYINCIYFQKZRgAAAAAAA=</cavv>
<eci>05</eci>
<cavvAlgorithm>1</cavvAlgorithm>
</TX>
</PARes>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></CanonicalizationMethod>
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></SignatureMethod>
<Reference URI="#PARes11333">
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
<DigestValue>10gmc514zBMGZy2Rh75QBIqt748=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>jaFSdIFgkz349SwKU++mPbZLs0ImjWnMLSjPwQ4IOfpm/S+jIJkjMzbDgLMomqBwlhnvGijozscCSZXHot0D8qo1Hk1tF5h/QzJHZlo1h6+GW1j3odDmrK7Oy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
</Signature>
</Message>
</ThreeDSecure>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.aleksey.com/pipermail/xmlsec/attachments/20040504/06239258/attachment.htm
More information about the xmlsec
mailing list