http://www.aleksey.com/xmlsec/example-dsig2.html
" 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 output
with xmlsec utility or that you have different signature with it. Please open your
files and look inside!
Aleksey
vish ch wrote:
hi,
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
== SIGNED INFO REFERENCES
=== REFERENCE
==== ref type: SignedInfo Reference
==== result: FAIL
==== digest method: http://www.w3.org/2000/09/xmldsig#sha1
==== uri: NULL
==== type: NULL
==== id: NULL
==== start buffer:
FAIL
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 [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec
