As far as I know it is the same mechanism as used internally... Did you initialize xmlsec lib properly (probably a redundant question, but you never know):<br><br>xmlSecInit();<br>xmlSecCryptoAppInit(NULL);<br>xmlSecCryptoInit();
<br><br>Also, do you get any error messages anywhere? Or the key is simply not found?<br><br>Wouter<br><br><div><span class="gmail_quote">On 10/10/06, <b class="gmail_sendername">Jürgen Heiss</b> <<a href="mailto:jheiss@mesonic.com">
jheiss@mesonic.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>I forgot to tell that I'm using
mscrypto.</span></font></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:xmlsec-bounces@aleksey.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xmlsec-bounces@aleksey.com</a>
[mailto:<a href="mailto:xmlsec-bounces@aleksey.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xmlsec-bounces@aleksey.com</a>] <b>On Behalf Of </b>Jürgen
Heiss<br><b>Sent:</b> Dienstag, 10. Oktober 2006 11:06<br><b>To:</b>
<a href="mailto:xmlsec@aleksey.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xmlsec@aleksey.com</a><br><b>Subject:</b> [xmlsec] problems by
xmlSecKeysMngrFindKey<br></font><br></div><div><span class="e" id="q_10e31801cc989670_1">
<div></div>
<div><font face="Arial" size="2"><span>I try to Find a Key
but it always returns Null.</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"> xmlSecKeysMngrPtr mngr =
xmlSecKeysMngrCreate(); <br>
xmlSecCryptoAppDefaultKeysMngrInit(mngr);</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> /* locate and load key you want
to use */<br> xmlSecKeyInfoCtxPtr keyInfoCtx =
xmlSecKeyInfoCtxCreate(mngr);<br> xmlSecKeyPtr key =
xmlSecKeysMngrFindKey(mngr, (xmlChar *)<span>"dummy"</span>, keyInfoCtx); </font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div><font size="-0">
<div><span></span><font face="Arial"><font size="2">I<span> my computer exists a certificate with the name
CN=dummy.</span></font></font></div>
<div><font size="-0"><span></span><span></span><font face="Arial"><font size="2">a<span>ny ideas what went
wrong?</span></font><br></font></font></div><font size="2"></font></font></span></div></div>
<br>_______________________________________________<br>xmlsec mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.aleksey.com/mailman/listinfo/xmlsec" target="_blank">
http://www.aleksey.com/mailman/listinfo/xmlsec</a><br><br><br></blockquote></div><br>