Running hostapd and wpa_supplicant using test driver and EAP-PSK [solved]

Mati Vait mativait
Fri Mar 20 18:47:51 PDT 2009


Hello again,
problem solved. Mystically wpa_supplicant had some problems with getting
parameters from configuration file. For some strange reason length of
set password appeared to be zero (even after I chanced "psk" to
"password") but now it works. 

Working conf files for future reference:
----------------------------------------------------------
test_wpa_supplicant.conf:
ctrl_interface=/var/run/wpa_supplicant
driver_param=test_socket=/tmp/hostap/ap1
eapol_version=2

ap_scan=1
fast_reauth=1

network={
        ssid="test_hostapd_eap"
        anonymous_identity="eap_psk_user"
        key_mgmt=WPA-EAP
        eap=PSK
        identity="eap_psk_user at example.com"
        password="123456789abcdefg"
}    
---------------------------------------------------------
test_hostapd.conf:
eapol_version=1
hostapd ctrl_interface )
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
interface=ap1
driver=test
test_socket)
test_socket=/tmp/hostap/ap1
dump_file=/tmp/hostap/hostapd.dump
ssid=test_hostapd_eap
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
macaddr_acl=0  # accept unless in deny list
auth_algs=1  # 802.11 Open System Authentication (no WEP)
ieee8021x=1
eap_server=1
eap_user_file=hostapd.test_eap_user
#Using certs from eap_example, not sure whether neccesary here.
ca_cert=../eap_example/ca.pem   
server_cert=../eap_example/server.pem
private_key=../eap_example/server.key
private_key_passwd="whatever"
eap_message=eap.message
eap_reauth_period=3600
own_ip_addr=127.0.0.1
wpa=1  # bit0=WPA, bit1=RSN
wpa_key_mgmt=WPA-EAP
wpa_pairwise=TKIP CCMP
wpa_group_rekey=6000
wpa_gmk_rekey=86400
-------------------------------------------------------------
hostapd.test_eap_user:
"eap_psk_user"  PSK     "123456789abcdefg"
"eap_psk_user at example.com"      PSK     "123456789abcdefg"


-------------------------------------------------------------

One just has to repeat oneself after reading the manual: "RTFM!!!"

Sorry for wasting your time,
Mati





More information about the Hostap mailing list