[xmlsec] rsakey sign fail

Kai Hendry hendry at iki.fi
Wed Aug 26 09:46:38 PDT 2009


The test is described in the Makefile in git:
http://git.webvm.net/?p=wgtqa;a=blob;f=xmldsig/Makefile

Though I'll attach it here too. The rsakey.p12 is your example key is
the xml1sec distribution.


cd helloworld; xmlsec1 sign --pkcs12 ../rsakey.p12 --pwd secret
--output author-signature.xml ../signing-template.xml
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 "../signing-template.xml"



With thanks,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: helloworld.zip
Type: application/zip
Size: 513 bytes
Desc: not available
Url : http://www.aleksey.com/pipermail/xmlsec/attachments/20090826/6c3e7831/helloworld.zip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signing-template.xml
Type: text/xml
Size: 738 bytes
Desc: not available
Url : http://www.aleksey.com/pipermail/xmlsec/attachments/20090826/6c3e7831/signing-template.xml


More information about the xmlsec mailing list