<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=291454309-10102006>Hi Wouter,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=291454309-10102006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=291454309-10102006>Yes I use this three Init
Functions.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=291454309-10102006>I don't get any error, "just" the result is always
NULL.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT><SPAN class=291454309-10102006></SPAN></FONT><FONT
face=Arial color=#0000ff size=2><SPAN class=291454309-10102006>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 face=Arial color=#0000ff size=2><SPAN
class=291454309-10102006></SPAN></FONT> </DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Wouter Ketting [mailto:wsh333@gmail.com]
<BR><B>Sent:</B> Dienstag, 10. Oktober 2006 11:38<BR><B>To:</B> Jürgen
Heiss<BR><B>Cc:</B> xmlsec@aleksey.com<BR><B>Subject:</B> Re: [xmlsec] problems
by xmlSecKeysMngrFindKey<BR></FONT><BR></DIV>
<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"> jheiss@mesonic.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>I forgot
to tell that I'm using mscrypto.</SPAN></FONT></DIV><BR>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:xmlsec-bounces@aleksey.com"
target=_blank>xmlsec-bounces@aleksey.com</A> [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:xmlsec-bounces@aleksey.com"
target=_blank>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
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:xmlsec@aleksey.com"
target=_blank>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></BODY></HTML>