[xmlsec] Problems passing keys to xmlsec

Dmitry Belyavsky beldmit at cryptocom.ru
Mon Jan 23 07:33:19 PST 2006


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!

-- 
SY, Dmitry Belyavsky (ICQ UIN 11116575)




More information about the xmlsec mailing list