<!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><SPAN class=868411211-10102006><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=868411211-10102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=868411211-10102006><FONT face=Arial
color=#0000ff size=2>My certificate subject look like this.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=868411211-10102006><FONT
size=1></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=868411211-10102006><FONT size=1>Serial
Number = xxxxxx</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=868411211-10102006><FONT size=1>N =
Dummy</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=868411211-10102006><FONT size=1>C =
AT</FONT></SPAN></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><SPAN
class=868411211-10102006><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><SPAN
class=868411211-10102006><FONT face=Arial color=#0000ff size=2>How should look
now the function call?</FONT></SPAN></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><SPAN
class=868411211-10102006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><SPAN
class=868411211-10102006><FONT face=Arial color=#0000ff size=2>xmlSecKeyPtr key
= xmlSecKeysMngrFindKey(mngr, (xmlChar *)<SPAN>"Serival number = xxxxxx N =
Dummy c = AT "</SPAN>, keyInfoCtx); </FONT></SPAN></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><SPAN
class=868411211-10102006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><SPAN
class=868411211-10102006><FONT face=Arial color=#0000ff size=2>This down't
work!</FONT></SPAN></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma
size=2><B>From:</B> Wouter Ketting [mailto:wsh333@gmail.com] <BR><B>Sent:</B>
Dienstag, 10. Oktober 2006 12:06<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>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="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>Hi
Wouter,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>Yes I use
this three Init Functions.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>I don't
get any error, "just" the result is always NULL.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=+0><SPAN></SPAN></FONT><FONT face=Arial
color=#0000ff 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 face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> Wouter Ketting [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:wsh333@gmail.com" target=_blank>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 onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:xmlsec@aleksey.com"
target=_blank>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 onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:jheiss@mesonic.com" target=_blank> 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>
<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" target=_blank>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></SPAN></DIV></DIV></BLOCKQUOTE></DIV><BR></BODY></HTML>