[xmlsec] Trying to sign a XML

Gian Carlo Perego Marson gian at mastercase.com.br
Wed Jul 16 07:02:38 PDT 2008


Hi all!

I try to sign a XML with this cmd:

xmlsec1 sign --keys-file deskey.xml data.xml

But i get the following error message:

func=xmlSecKeysMngrGetKey:file=keys.c:line=1364:obj=unknown:subj=xmlSecKeysMngrFindKey:error=1:xmlsec 
library function failed:
func=xmlSecDSigCtxProcessKeyInfoNode:file=xmldsig.c:line=871:obj=unknown:subj=unknown:error=45:key 
is not found:
func=xmlSecDSigCtxProcessSignatureNode:file=xmldsig.c:line=565:obj=unknown:subj=xmlSecDSigCtxProcessKeyInfoNode:error=1:xmlsec 
library function failed:
func=xmlSecDSigCtxSign:file=xmldsig.c:line=303:obj=unknown:subj=xmlSecDSigCtxSigantureProcessNode:error=1:xmlsec 
library function failed:
Error: signature failed
Error: failed to sign file "data.xml"

What this error means? Below, i describe the key file:

<?xml version="1.0"?>
<Keys xmlns="http://www.aleksey.com/xmlsec/2002">
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<KeyName>DES</KeyName>
<KeyValue>
<DESKeyValue xmlns="http://www.aleksey.com/xmlsec/2002">XXXXX
XXXXX
XXXXXX
XXXX...</DESKeyValue>
</KeyValue>
</KeyInfo>
</Keys>

I appreciate your help! Thanks a lot.




More information about the xmlsec mailing list