This is a write-up of the steps I used to configure eduroam on a brand-new Omarchy v4 installation after the automatic installers failed to work for me.
It is a slightly modified version of the instructions published by the University of Stuttgart: University of Stuttgart eduroam Configuration Guide
Caution
These instructions were created for my own eduroam account at the University of Stuttgart. They may not work for other universities, as certificate requirements and authentication settings can differ. Use them at your own risk.
If you need to configure your Wi-Fi connection manually in NetworkManager, you can follow the steps below.
Install the Server CA certificate. My university mentioned two server CA possibilities: either Hellenic Academic and Research Institutions RootCA 2015 or HARICA TLS RSA Root CA 2021
Become root:
sudo suDownload HERICA CA certificate
mv /home/moritz/Downloads/HARICA-TLS-Root-2021-RSA.pem /usr/share/ca-certificates/trust-source/anchors/HARICA-TLS-Root-2021-RSA.pemChange permissions
chown root:root /usr/share/ca-certificates/trust-source/anchors/HARICA-TLS-Root-2021-RSA.pem
chmod 0400 /usr/share/ca-certificates/trust-source/anchors/HARICA-TLS-Root-2021-RSA.pemInstall certificate
cat /usr/share/ca-certificates/trust-source/README
update-ca-trustIssue a new certificate for your device. Download as PKCS#12. Set some random password for the download (e.g. use pwgen) as you only need it once here (and once for your import on your machine).
Become root (sudo su / su)
Save your downloaded PKCS#12 bundle into a system location:
mv /home/moritz/Downloads/UniStuttgart_stxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.p12 \
/etc/ssl/private/UniStuttgart_stxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.p12 Adjust the /home/moritz/ according to your actual username.
Secure file ownership and permissions:
chown root:root /etc/ssl/private/UniStuttgart_stxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.p12
chmod 0400 /etc/ssl/private/UniStuttgart_stxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.p12 In case SELinux is enabled, register the changes as legitimate:
restorecon -r /etc/ssl/privateCleanup any WiFi profiles that you do not need or use (including any old eduroam):
nmcli connection
nmcli connection del eduroamThe nmcli connection list should now be either empty or only contain active entries.
Add new eduroam connection:
nmcli connection add type wifi con-name "eduroam" ssid "eduroam"
nmcli connection modify eduroam \
connection.autoconnect-priority 100 \
connection.permissions "" \
connection.metered no \
802-1x.eap tls \
802-1x.identity tlsclient@uni-stuttgart.de \
802-1x.ca-cert /usr/share/ca-certificates/trust-source/anchors/HARICA-TLS-Root-2021-RSA.pem \
802-1x.altsubject-matches DNS:eduroam.uni-stuttgart.de \
802-1x.client-cert /etc/ssl/private/UniStuttgart_stxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.p12 \
802-1x.private-key /etc/ssl/private/UniStuttgart_stxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.p12 \
802-1x.private-key-password "<Your_PKCS#12_Download_Password>" \
802-1x.private-key-password-flags 0 \
802-11-wireless-security.key-mgmt wpa-eapUse connection.permissions "", so that all users and especially root can access this connection (system-wide connection).
Adjust the Your_PKCS#12_Download_Password according to your actual used password.
Verify that eduroam now works for you:
nmcli connection show --activeIf you need to force the connection to eduroam:
nmcli connection up eduroamYou can check all connection settings:
nmcli connection show eduroamIn previous iterations I had problems activating the connection. It was possible to access debug messages on my specific machine with:
journalctl -xe NM_CONNECTION=63a9097c-6401-xxxx-xxxx-xxxxxxxxxxxx + NM_DEVICE=wlp2s0