<html><head><style type="text/css"><!-- DIV {margin:0px} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>Hi Jurgen,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Do you have a dsig:KeyName specified ? Take out this element manually and re-verify. I have seen this also. However I do not get a crash. I believe that on a Verify if both X509Certificate is present and KeyName is present, xmlsec still tries to retrieve the certificate from the KeyMngr which will then go on to the Microsoft CryptoStore if not found in the KeysMngr. </DIV>
<DIV>&nbsp;</DIV>
<DIV>I would wager, but Alexsey is the expert, that it might be a good idea to ignore the KeyName if an X509Certificate is present when Verifying. After all the reason it got there in the first place is that it was used to select the cert/key when you originally signed it with xmlsec and is left over from the sign operation. It will verify fine if you manually remove the KeyName. Comments Alexsey ?&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Ed<BR><BR>----- Original Message ----<BR>From: Aleksey Sanin &lt;aleksey@aleksey.com&gt;<BR>To: Jürgen Heiss &lt;jheiss@Mesonic.com&gt;<BR>Cc: xmlsec@aleksey.com<BR>Sent: Wednesday, May 31, 2006 11:23:21 AM<BR>Subject: Re: [xmlsec] RE: Need urgent help for verify<BR><BR></DIV>
<DIV>No. Please, provide the stack trace for the crash.<BR><BR>Aleksey<BR><BR>Jürgen Heiss wrote:<BR>&gt; Does really now one have any idea? <BR>&gt; Hi,<BR>&gt;&nbsp;&nbsp;<BR>&gt; I use the following code to verify a signed file.<BR>&gt; The problem is now, the xmlSecDSigCtxVerify crahses if the certificate <BR>&gt; isn't installed on my machine!?!<BR>&gt; How can I check this file? Can I excract the certificate and load it <BR>&gt; into a xmlSecKeysMngrPtr?<BR>&gt;&nbsp;&nbsp;<BR>&gt; thanks for any help.<BR>&gt;&nbsp;&nbsp;<BR>&gt; &lt;some code&gt; <BR>&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;if(xmlSecDSigCtxInitialize(&amp;dsigCtx, gKeysMngr) &lt; 0)<BR>&gt;&nbsp;&nbsp; return (V_INTERNAL);<BR>&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;if(xmlSecAppPrepareDSigCtx(&amp;dsigCtx) &lt; 0)<BR>&gt;&nbsp;&nbsp;{<BR>&gt;&nbsp;&nbsp; xmlSecDSigCtxFinalize(&amp;dsigCtx);<BR>&gt;&nbsp;&nbsp; return
 V_INTERNAL;<BR>&gt;&nbsp;&nbsp;}<BR>&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;/* parse template and select start node */<BR>&gt;&nbsp;&nbsp;data = xmlSecAppXmlDataCreate(filename, xmlSecNodeSignature, xmlSecDSigNs);<BR>&gt;&nbsp;&nbsp;if(data == NULL)<BR>&gt;&nbsp;&nbsp;{<BR>&gt;&nbsp;&nbsp; xmlSecDSigCtxFinalize(&amp;dsigCtx);<BR>&gt;&nbsp;&nbsp; if(data != NULL)<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;xmlSecAppXmlDataDestroy(data);<BR>&gt;&nbsp;&nbsp; return V_INTERNAL;<BR>&gt;&nbsp;&nbsp;}<BR>&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;/* sign */<BR>&gt;&nbsp;&nbsp;start_time = clock();<BR>&gt;&nbsp;&nbsp;if(xmlSecDSigCtxVerify(&amp;dsigCtx, data-&gt;startNode) &lt; 0)<BR>&gt; <BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; xmlsec mailing list<BR>&gt; xmlsec@aleksey.com<BR>&gt; <A href="http://www.aleksey.com/mailman/listinfo/xmlsec"
 target=_blank>http://www.aleksey.com/mailman/listinfo/xmlsec</A><BR>_______________________________________________<BR>xmlsec mailing list<BR>xmlsec@aleksey.com<BR><A href="http://www.aleksey.com/mailman/listinfo/xmlsec" target=_blank>http://www.aleksey.com/mailman/listinfo/xmlsec</A></DIV></DIV></div></body></html>