Search by friendly name is not (yet) supported. You could try search by full subject DN, or apply the patch posted in <a href="http://www.aleksey.com/pipermail/xmlsec/2006/003560.html">http://www.aleksey.com/pipermail/xmlsec/2006/003560.html
</a> and see whether you are able to retrieve the certificate by friendly name.<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>Hi Wouter,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>Yes I use this three Init
Functions.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>I don't get any error, "just" the result is always
NULL.</span></font></div>
<div dir="ltr" align="left"><font><span></span></font><font color="#0000ff" face="Arial" size="2"><span>The parm (name)
in the FindKey Function is the friendly name of the cert, or should it be
something else.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Wouter Ketting [mailto:<a href="mailto:wsh333@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">wsh333@gmail.com</a>]
<br><b>Sent:</b> Dienstag, 10. Oktober 2006 11:38<br><b>To:</b> Jürgen
Heiss<br><b>Cc:</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> Re: [xmlsec] problems
by xmlSecKeysMngrFindKey<br></font><br></div><div><span class="e" id="q_10e319d734e6debb_1">
<div></div>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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> 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>
<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 href="mailto:xmlsec@aleksey.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xmlsec@aleksey.com</a><br><a href="http://www.aleksey.com/mailman/listinfo/xmlsec" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.aleksey.com/mailman/listinfo/xmlsec</a><br><br><br></blockquote></div><br></span></div></div>
</blockquote></div><br>