"key is not found" Try to put a key name in the template's KeyName element and then specify the same name in the command line (see xmlsec --help) for details. Aleksey