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"><<a href="mailto:j@w1.fi">j@w1.fi</a>></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>
> Is it possible to configure wpa_supplicant for EAP-SIM authentication with<br>
> 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>
> 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>
> I'm using a configuration file like that:<br>
><br>
> # EAP-SIM with a GSM SIM or USIM<br>
> network={<br>
> ssid="vexatt-eap"<br>
> key_mgmt=WPA-EAP<br>
> eap=SIM<br>
> pin="1234"<br>
> pcsc=""<br>
> }<br>
<br>
</div>Remove pin and pcsc entries and add these:<br>
<br>
identity="1232010000000000"<br>
password="90dca4eda45b53cf0f12d7c9c3bc6a89:cb9cccc4b9258e6dca4760379fb82581"<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="0232010000000000"<br>
password="90dca4eda45b53cf0f12d7c9c3bc6a89:cb9cccc4b9258e6dca4760379fb82581:000000000123"<br>
<div class="im"><br>
> but it seems wpa_supplicant is trying to get some information from a SIM<br>
> 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>