[xmlsec] xmlsec1 command line tool examples?

Aleksey Sanin aleksey at aleksey.com
Wed Jul 16 22:15:51 PDT 2003


In addition to the great examples from Edward, you might go to
examples/ folder from source package and try the following
commands. I've just added these examples to examples/README
file. Please note, that you would need to create "binary.dat"
file in "examples/" folder by yourself (just put any string in it).
Other option is to get sources and everything "ready to go"
from CVS.


Aleksey


4. Using xmlsec command line tool.
-------------------------
For Windows, use "xmlsec" instead of "xmlsec1".
        xmlsec1 sign --privkey rsakey.pem --output sign1.xml sign1-tmpl.xml
        xmlsec1 verify --pubkey rsapub.pem sign1.xml
        xmlsec1 verify --pubkey rsapub.pem sign1-res.xml
        xmlsec1 verify --pubkey rsapub.pem sign2-res.xml
        xmlsec1 verify --trusted rootcert.pem sign3-res.xml
        xmlsec1 verify --trusted rootcert.pem verify4-res.xml
                                                                                

        xmlsec1 encrypt --deskey deskey.bin  --binary-data binary.dat 
--output encrypt1.xml encrypt1-tmpl.xml
        xmlsec1 decrypt --deskey deskey.bin encrypt1.xml
        xmlsec1 decrypt --deskey deskey.bin encrypt1-res.xml
        xmlsec1 decrypt --deskey deskey.bin encrypt2-res.xml
        xmlsec1 decrypt --privkey rsakey.pem encrypt3-res.xml
                                                                                






More information about the xmlsec mailing list