[xmlsec] Signing a template with mscrypto

Dmitry Belyavsky beldmit at cryptocom.ru
Wed Dec 7 06:36:28 PST 2005


Greetings!

I've successfully implemented a support of MS CSP providing Russian
GOST. Now I try to sign a template using <X509Data/> for signer
information.

I've replaced a <KeyName/> node in sign1-tmpl.xml with <X509Data/> and
called xmlsec utility:

xmlsec --sign sign1-tmpl.xml

I get a stack of errors:

===========

func=:file=..\src\keys.c:line=1364:obj=unknown:subj=xmlSecKeysMngrFindKey:error=1:xmlsec library function failed: ;last error=-2146885628 (0x80092004);last error msg=Cannot find object or property.

func=:file=..\src\xmldsig.c:line=871:obj=unknown:subj=unknown:error=45:key is not found: ;last error=-2146885628 (0x80092004);last error msg=Cannot find object or property.

func=:file=..\src\xmldsig.c:line=565:obj=unknown:subj=xmlSecDSigCtxProcessKeyInfoNode:error=1:xmlsec library function failed: ;last error=-2146885628 (0x80092004);last error msg=Cannot find object or property.

func=:file=..\src\xmldsig.c:line=303:obj=unknown:subj=xmlSecDSigCtxSigantureProcessNode:error=1:xmlsec library function failed: ;last error=-2146885628 (0x80092004);last error msg=Cannot find object or property.

Error: signature failed
Error: failed to sign file "sign1-tmpl.xml"
===========

What functions should I implement to fix the problem?

-- 
SY, Dmitry Belyavsky (ICQ UIN 11116575)




More information about the xmlsec mailing list