Linux as PEAP/MSCHAPv2 Client
This summarize my experience on using Linux as a PEAP/MSCHAv2 client and using wpa_supplicant to connect to the 802.1x AP.
wpa_supplicant.conf
network={ ssid="sample" scan_ssid=0 key_mgmt=WPA-EAP pairwise=CCMP TKIP group=CCMP TKIP eap=PEAP identity="username@domain" password="cleartextpassword" # ca_cert="cacert.pem" phase1="peapver=0" phase2="MSCHAPV2" priority=30 }
- You may simply comment out the ca_cert to accept all certificate.
- Bigger priority will be have favorite to connect to.
- Sample execution command
wpa_supplicant -d -c /etc/wpa_supplicant.conf -iwlan0 -Dwext
- You can get the IP by activate the dhcp
dhcpcd -B -C resolv.conf -C ntp -G -t 10 -n wlan0, or dhcpcd -t 10 -n wlan0