<div>Hi,</div>
<div>   Thanks for your reply..</div>
<div>  <font style="BACKGROUND-COLOR: #ffff66">  I am giving the path in this format <font color="#a31515" size="2"><font color="#a31515" size="2">&quot;client_cert=\&quot;\\Certificates\\newclientcert.p12\&quot;\n&quot;.</font></font></font></div>

<div><font color="#a31515"><font color="#333333">   I have created one folder &quot;Certificates</font><font color="#333333">&quot; inside File explorer and i have dumped the 1) newcacert.cer 2) newclientcert.p12 and installed the same on the device. I could see from logs that</font> </font><font color="#333333"> newcacert.cer  is getting loaded properly.</font><br>
</div>
<div>TLS: using phase1 config options<br>OpenSSL: __func__ not defined - Failed to load root certificates error:00000000:lib(0):func(0):reason(0)<br>Op<font style="BACKGROUND-COLOR: #ffff66">enSSL: __func__ not defined - loaded DER format CA certificate</font><br>
<font style="BACKGROUND-COLOR: #ffff66">OpenSSL: __func__ not defined - SSL_use_certificate_file (DER) failed error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag<br></font>OpenSSL: pending error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error<br>
OpenSSL: pending error: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error<br>OpenSSL: pending error: error:140C800D:SSL routines:SSL_use_certificate_file:ASN1 lib<br>OpenSSL: __func__ not defined - SSL_use_certi</div>

<div> </div>
<div><font color="#333333">I have given the path for newcacert.cer =  <font size="2"><font size="2">&quot;ca_cert=\&quot;\\Certificates\\newcacert.cer\&quot;\n&quot;</font></font></font></div>
<div><font color="#333333">and</font></div>
<div><font color="#333333">i have given the path for newclientcert.p12 =  &quot;client_cert=\&quot;\\Certificates\\newclientcert.p12\&quot;\n&quot;.</font></div>
<p><font color="#333333">First one is getting loaded properly (From log i can say). Can you suggest some way.</font></p>
<div>Regards,</div>
<div>Vijay Swami</div>
<div><br></div>
<div class="gmail_quote">On Thu, Aug 26, 2010 at 5:57 PM, Jouni Malinen <span dir="ltr">&lt;<a href="mailto:j@w1.fi">j@w1.fi</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Thu, Aug 26, 2010 at 04:43:56PM +0530, Vijay Swami wrote:<br>&gt;    I am facing one stupid problem. I have ported the WPA_SUPPLICANT on<br>&gt; Windows Mobile. I am using HTC Touch  Pro for testing. I have installed the<br>
&gt; test certificates on device. I can see installed certificates in<br>&gt; Settings-&gt;All Settings-&gt;System-&gt;Certificates-&gt;Root. I am not able to give<br>&gt; the proper path of that certificates in the code For that i am<br>
&gt; getting following error:<br><br></div>
<div class="im">&gt; OpenSSL: __func__ not defined - SSL_use_certificate_file (DER) failed<br>&gt; error:02001002:system library:fopen:No such file or directory<br><br></div>What path did you use with the certificate? Is the certificate in the<br>
certificate store instead of a file in the file system? Currently,<br>wpa_supplicant supports Windows certificate store for loading CA<br>certificates. In other words, you can set ca_cert parameter to<br>&quot;cert_store://CA&quot; or &quot;cert_store://ROOT&quot; (etc.) based on where you have<br>
the CA certificate(s). As far as client certificate and private key are<br>concerned, you can use cert:// or hash:// prefixes in private_key (note:<br>client_cert is left out from configuration). Take a look at<br>wpa_supplicant.conf for more information on how to select which<br>
certificate/private key is used.<br><font color="#888888"><br>--<br>Jouni Malinen                                            PGP id EFC895FA<br>_______________________________________________<br>HostAP mailing list<br><a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br></font></blockquote></div><br>