[xmlsec] xmlse usage

Aleksey Sanin aleksey at aleksey.com
Sun Dec 22 16:00:17 PST 2002

First of all, you made a mistake in the command line. The correct call 
look like this:
    xmlsec sign --privkey:server ./server.key xml.txt
The square brackets '[' and ']'  in the help page indicate that this 
part is optional.
If running the correct command will not help then I would suggest to 
check that
the key in server.key matches the signature algorithm used (i.e. don't 
expect to
find an RSA key for DSA signature :) ).

With best regards,

Wayne Cheng wrote:

>Hello Aleksey,
>I tired to play with xmlsec. But I am not why the key cannot be found.
>server.key is the private key generated with openssl.
>bash-2.05$ xmlsec sign --privkey[:server] ./server.key xml.txt
>xmlSecKeysMngrGetKey (keys.c:451): error 17: key not found :
>xmlSecSignedInfoRead (xmldsig.c:1385): error 17: key not found :
>xmlSecSignatureRead (xmldsig.c:1124): error 2: xmlsec operation failed :
>ignedInfoRead - -1
>xmlSecDSigGenerate (xmldsig.c:792): error 2: xmlsec operation failed :
>natureRead - -1
>Error: xmlSecDSigGenerate() failed
>Error: operation failed
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>xmlsec mailing list
>xmlsec at aleksey.com

More information about the xmlsec mailing list