I'm working on a Raspberry Pi 3B+ and I'm trying to connect to a WPA-EAP network. I managed to successfully connected using PEAP with the following configuration:
network={
ssid="whatever"
scan_ssid=1
key_mgmt=WPA-EAP
eap=PEAP
identity="whatever2"
password="whatever3"
phase2="auth=MSCHAPV2"
}
I monitored the FreeRadius log and no problem, connection established with Internet access using the following command:
$ sudo wpa_supplicant -iwlan0 -cpeap.conf
Then I tried to connect using IEEE8021X with certificates and I'm using the following configuration:
eapol_version=1
network={
ssid="whatever"
scan_ssid=1
key_mgmt=IEEE8021X
eap=TLS
identity="whatever2"
client_cert="DEVICE1_cert.pem"
private_key="DEVICE1_key.pem"
private_key_passwd="whatever3"
}
With this configuration I'm not even getting a request on my radius server (no change to the logs whatsoever). I'm getting the following errors also in the terminal:
$ sudo wpa_supplicant -iwlan0 -c8021.conf
successfully initialized wpa_supplicant
wlan0: Trying to associate with XX:XX:XX:XX:XX:XX (SSID="***" freq=2442 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT bssid=00:00:00:00:00:00 status_code=16