> It doese not work because the template doese not match to the file I > want to encrypt. What do you mean??? Template for encryption has nothing to do with the file to encrypt. For examples, look into xmlsec/test/testEnc.sh file. There quite a few tests that run xmlsec utility. Aleksey