802.1X connection debugging
Posted: Tue Feb 13, 2018 6:07 pm
I have another device connecting to a EAP 802.1X access point successfully with the following wpa_supplicant configuration:
However, if I try and connect from a ESP32 doing the esp_wifi_set_*() setup calls (derived from the esp-idf/examples/wifi/wpa2_enterprise example) using the information from above that I can provide via that API (e.g. pem files, "user", SSID) I get:
and the association fails with "reason 4". There does not seem to be any output from the hostapd acting as the access point to indicate that authentication against that AP has started.
Is there any documentation covering deciphering the WiFi supplicant output from the binary-blob-library that would shed some light on what the actual failure is?
Code: Select all
network={
ssid="myTestSSID"
scan_ssid=1
key_mgmt=WPA-EAP
group=CCMP TKIP
eap=TLS
identity="user"
ca_cert="/etc/wpa_supplicant/ca-chain.cert.pem"
client_cert="/etc/wpa_supplicant/cert.pem"
private_key="/etc/wpa_supplicant/key.pem"
}
Code: Select all
I (1216) wpa: WPA2 ENTERPRISE VERSION: [v2.0] enable
I (10496) wifi: n:7 2, o:7 0, ap:7 2, sta:7 0, prof:7
I (10506) wifi: state: init -> auth (b0)
I (10506) wifi: state: auth -> assoc (0)
I (11516) wifi: state: assoc -> init (4)
I (11516) wifi: n:7 0, o:7 2, ap:7 2, sta:7 0, prof:7
Is there any documentation covering deciphering the WiFi supplicant output from the binary-blob-library that would shed some light on what the actual failure is?