Sonntag, 26. Januar 2014

Eduroam mit Raspberry Pi


Raspberry Pi und Eduroam


Zunächst prüfen, ob ein WLAN Adapter angeschlossen ist:

pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]



Interface Konfiguration:


cat /etc/network/interfaces
 

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp


Datei /etc/wpa_supplicant/wpa_supplicant.conf anlegen.
Beispiele für verschiedene WLANS: WPA, offenes Netz und Eduroam  

sudo cat /etc/wpa_supplicant/wpa_supplicant.conf


ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="AirportGIG"
    psk="********key********"
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP
    auth_alg=OPEN
}

network={
        ssid="opennetwork"
        key_mgmt=NONE
        auth_alg=OPEN
        disabled=1
}

network={
        ssid="eduroam"
        proto=RSN
        key_mgmt=WPA-EAP
        pairwise=CCMP
        auth_alg=OPEN
        identity="user@uni-mainz.de"
        password="password"
        ca_cert="/etc/wpa_supplicant/ca.pem"
        phase2="auth=MSCHAPV2"
}


 Zertifikat von der Uni besorgen und unter etc/wpa_supplicant/ca.pem ablegen.

neues cert:  https://www.startssl.com/certs/ca-g2.crt

in neueren Debian und Android ist das cert bereits vorhanden:

 /usr/share/ca-certificates/mozilla/StartCom_Certification_Authority_G2.crt


Interface restart:

sudo /etc/init.d/networking restart







Keine Kommentare:

Kommentar veröffentlichen