[xmlsec] Trying to sign a XML

Aleksey Sanin aleksey at aleksey.com
Wed Jul 16 08:02:26 PDT 2008


 > key is not found

Aleksey

Gian Carlo Perego Marson wrote:
> 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.
> 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec



More information about the xmlsec mailing list