Linux - EAP-TLS
How to Connect to Wi-Fi Using EAP-TLS on Linux
EAP-TLS (Extensible Authentication Protocol - Transport Layer Security) is one of the most secure Wi-Fi authentication methods. It uses client and server certificates for mutual authentication without relying on passwords.
Option 1: GUI with NetworkManager
- Click the Wi-Fi icon and select your network.
- In the authentication window, choose the following:
- Security:
WPA & WPA2 Enterprise - Authentication:
TLS - Identity: Your username (optional, some setups require it)
- CA Certificate: Path to your CA file (e.g., )
/etc/ssl/certs/ca-cert.pem - User Certificate: Your client certificate (e.g., )
.pem - Private Key: The corresponding private key file (e.g., )
.key - Private Key Password: If applicable
- Anonymous Identity: Leave blank Click Connect.
Option 2: CLI Using wpa_supplicant
wpa_supplicant
1. Create a Config File
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
2. Add the Following Configuration:
3. Start the Connection:
Then acquire an IP address:
sudo dhclient wlan0
Certificate Notes
- and
.pemfiles are accepted formats..crt - If you have a or
.p12file, extract the contents using OpenSSL:.pfx
Troubleshooting
- Use or
journalctl -u NetworkManagerto check for connection errors.dmesg - Ensure the RADIUS server certificate matches the domain name (important for newer distros).
- File permissions must allow to access your certificates.
wpa_supplicant
Security Tip
Protect your private key file with restrictive permissions:
chmod 600 client-key.pem