Connecting to eduroam (WPA-EAP) with Raspberry PI

I wanted to use eduroam with my Raspberry PI.

echo -n <password-for-wifi> | iconv -t utf16le | openssl md4

and create a hash for your authentication. Save the result somewhere for we’ll use it later on.

sudo vi /etc/network/interfaces

Open file for interfaces, and rewrite the wlan0 part as below.

allow-hotplug wlan0
iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  • make sure you write DHCP, or else you’re going no where.

And of course, you need to rewrite the wpa_supplicant.conf as well.

sudo vi /etc/wpa_supplicant/wpa_supplicant.conf

At the bottom of the file,

network={
      ssid="eduroam"
      scan_ssid=1
      key_mgmt=WPA-EAP
      eap=PEAP
      identity="<your-username>"
      password=hash:<your-hashed-password>
      phase2="MSCHAPV2"
}
sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B
history -c
sudo reboot

If above doesn’t work, try out different methods and protocols…

Reference