[xmlsec] verification for dsig2.c

vish ch hivisu at hotmail.com
Sat Dec 14 14:05:41 PST 2002


Im sorry , i think i confused u a bit. when i said that i used test.xml, i 
meant i used a template document for which i signed and verified using the 
DSAPrivate and DSAPublic keys . But now i want to verify the signed document 
using dsig2. how can i verify the signed document which is signed using 

thanks in advance,


>From: Aleksey Sanin <aleksey at aleksey.com>
>To: vish ch <hivisu at hotmail.com>
>CC: xmlsec at aleksey.com
>Subject: Re: [xmlsec] verification for dsig2.c
>Date: Sat, 14 Dec 2002 12:23:48 -0800
>Please read the description of the dsig2 example
>        " In this example we will add a signature to the document..."
>The test.xml is example *result* ouptut. Try
>        ./dsig2 DSAprivate test.tmpl > result.xml
>And I am absilutely not suprised that you are not able to verify your 
>with xmlsec utility or that you have different signature with it. Please 
>open your
>files and look inside!
>vish ch wrote:
>>the error it gives is....
>>xmlSecSignedInfoRead (xmldsig.c:1493): error 51: invalid reference :
>>= XMLDSig Result (validate)
>>== result: FAIL
>>== sign method: http://www.w3.org/2000/09/xmldsig#dsa-sha1
>>== KEY
>>=== method: DSAKeyValue
>>=== key name: NULL
>>=== key type: Public
>>=== key origin: KeyManager
>>==== ref type: SignedInfo Reference
>>==== result: FAIL
>>==== digest method: http://www.w3.org/2000/09/xmldsig#sha1
>>==== uri: NULL
>>==== type: NULL
>>==== id: NULL
>>==== start buffer:
>>Error: operation failed
>>i used ./dsig2 DSAprivate test.xml > result.xml to generate the signature,
>>to verify i used
>>xmlsec verify --pubkey DSApubkey result.xml
>>Also one more thing i noticed was that the signature generated as above 
>>was different when compared to generated using xmlsec utility.
>>xmlsec sign --privkey DSApriavte test.xml > result.xml.
>>Here are the public and private keys i used
>xmlsec mailing list
>xmlsec at aleksey.com

The new MSN 8: advanced junk mail protection and 2 months FREE* 

More information about the xmlsec mailing list