[xmlsec] Problems passing keys to xmlsec

Aleksey Sanin aleksey at aleksey.com
Mon Jan 23 08:01:08 PST 2006


xmlSecAppLoadKeys() method puts keys into keys manager. Then you
can reference these keys from signature template.

Aleksey

Dmitry Belyavsky wrote:
> Greetings!
> 
> I try to use xmlsec cmdline utility with openssl specifying unprotected
> PKCS#8-keys and corresponding certs. Unfortunately, I didn't found test
> cases in make check-dsig results.
> 
> I try to do so:
> xmlsec1 --sign ~/test.xml --pkcs8-pem seckey.pem --pubkey-pem cert.pem
> 
> and get the output
> 
> func=xmlSecKeysMngrGetKey:file=keys.c:line=1363: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:
> 
> I stepped into xmlSecAppLoadKeys and it seems to me it didn't form any
> list of the keys, either private or public.
> 
> What's wrong?
> 
> Thank you!
> 



More information about the xmlsec mailing list