Skip to content

Instantly share code, notes, and snippets.

@wtjerry
Forked from tabertoz/Raspberry WLAN HSLU
Created November 9, 2017 20:25
Show Gist options
  • Save wtjerry/bf56a6273463fb36de775a971d2bc589 to your computer and use it in GitHub Desktop.
Save wtjerry/bf56a6273463fb36de775a971d2bc589 to your computer and use it in GitHub Desktop.
#sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="hslu"
scan_ssid=1
key_mgmt=WPA-EAP
eap=TTLS
identity="HSLU_LoginName_ohneCampus"
password=hash:PW_ALS_HASH
ca_cert="/home/pi/ca.crt"
phase2="auth=MSCHAPV2"
}
#abspeichern
#Danach WLAN-Modul neustarten:
#sudo ifdown wlan0 && sudo ifup wlan0
#Oder einfach rebooten
#Passwort verschlüsseln:
f(){
local passwordVar
read -s -r -p "Please enter your password to hash: " passwordVar
echo -n $passwordVar | iconv -t utf16le | openssl md4
}
f
#Den Output in die Datei /etc/wpa_supplicant/wpa_supplicant.conf für PW_ALS_HASH einfügen.
#Das Zertifikat findet sich hier: https://www.hslu.ch/de-ch/helpdesk/anleitungen/netzwerk/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment