[xmlsec] Signing a template with mscrypto

Aleksey Sanin aleksey at aleksey.com
Thu Dec 8 07:58:02 PST 2005


It seems like it can not find correct key for given signature
algorithm. In the debugger, break in xmlSecKeyReqMatchKey
function and monitor what it does.

Aleksey

Dmitry Belyavsky wrote:
> On Thu, 8 Dec 2005, Aleksey Sanin wrote:
> 
>>> I verify the signature using xmlsec.exe --verify signed.xml.
>>>
>>> Whether xmlsec tries to retrieve them before xmlSecKeysMngrGetKey?
>> Do you have any errors on the output?
> 
> Yes, I do...
> =============
> 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=366: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
> SignedInfo References (ok/all): 1/1
> Manifests References (ok/all): 0/0
> Error: failed to verify file "signed.xml"
> =================
> I've attached the signed file, hope it helps.
> 
> Thank you!
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec



More information about the xmlsec mailing list