Ok Jouni,<br><br>  It worked very well.<br><br>  Thank you.<br><br><div class="gmail_quote">2011/11/3 Jouni Malinen <span dir="ltr">&lt;<a href="mailto:j@w1.fi">j@w1.fi</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Nov 03, 2011 at 11:58:02AM -0200, Ronaldo Afonso wrote:<br>
&gt;  Is it possible to configure wpa_supplicant for EAP-SIM authentication with<br>
&gt; no SIM Card?<br>
<br>
</div>Yes, wpa_supplicant can be built with Milenage-based simulator for<br>
SIM/USIM authentication.<br>
<div class="im"><br>
&gt;  I just want to simulate a EAP-SIM client authentication.<br>
<br>
</div>Add these to build configuration in wpa_supplicant/.config:<br>
<br>
CONFIG_USIM_SIMULATOR=y<br>
CONFIG_SIM_SIMULATOR=y<br>
<div class="im"><br>
&gt;  I&#39;m using a configuration file like that:<br>
&gt;<br>
&gt; # EAP-SIM with a GSM SIM or USIM<br>
&gt; network={<br>
&gt;    ssid=&quot;vexatt-eap&quot;<br>
&gt;    key_mgmt=WPA-EAP<br>
&gt;    eap=SIM<br>
&gt;    pin=&quot;1234&quot;<br>
&gt;    pcsc=&quot;&quot;<br>
&gt; }<br>
<br>
</div>Remove pin and pcsc entries and add these:<br>
<br>
    identity=&quot;1232010000000000&quot;<br>
    password=&quot;90dca4eda45b53cf0f12d7c9c3bc6a89:cb9cccc4b9258e6dca4760379fb82581&quot;<br>
<br>
In other words, you will need to build the identity (1 | IMSI for<br>
EAP-SIM) and set Milenage parameters in the password. See<br>
hostapd/hlr_auc_gw.milenage_db for more details on Milenage.<br>
<br>
Similarly, for EAP-AKA you can use:<br>
<br>
    identity=&quot;0232010000000000&quot;<br>
    password=&quot;90dca4eda45b53cf0f12d7c9c3bc6a89:cb9cccc4b9258e6dca4760379fb82581:000000000123&quot;<br>
<div class="im"><br>
&gt;   but it seems wpa_supplicant is trying to get some information from a SIM<br>
&gt; Card.<br>
<br>
</div>The pcsc parameter in the network block indicates that a real SIM card<br>
is to be used through PC/SC.<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><br clear="all"><br>-- <br>Ronaldo Afonso<br><a href="http://www.vexcorp.com/" target="_blank">www.vexcorp.com</a><br>+55 11 4932-5971<br><font color="#888888"><a href="mailto:ronaldo.afonso@vexcorp.com" target="_blank">ronaldo.afonso@vexcorp.com</a><br>
</font><br>