Created
May 19, 2020 10:51
-
-
Save jnaskali/89f3cd2a00e6bc25038ba1264bd6d14f to your computer and use it in GitHub Desktop.
Install eduroam for iwd using Arch's DigiCertCA (utu.fi)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "This tool will install eduroam for iwd. It will overwrite /var/lib/iwd/eduroam.8021x" | |
echo -n "Enter eduroam username (with domain): " | |
read user | |
echo -n "Enter eduroam password: " | |
read -s pass | |
echo | |
echo "Using sudo to write /var/lib/iwd/eduroam.8021x..." | |
echo "[Security] | |
EAP-Method=PEAP | |
EAP-Identity=$user | |
EAP-PEAP-CACert=/etc/ssl/certs/DigiCert_High_Assurance_EV_Root_CA.pem | |
EAP-PEAP-Phase2-Method=MSCHAPV2 | |
EAP-PEAP-Phase2-Identity=${user} | |
EAP-PEAP-Phase2-Password=${pass} | |
" | sudo tee /var/lib/iwd/eduroam.8021x 1>/dev/null && echo "OK" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The correct certificate authority file can be extracted from the end of the python installation file downloadable from https://cat.eduroam.org/
I noticed utu.fi cert file (DigiCert CA) is already installed on my system, so I used that directly for EAP-PEAP-CACert.