802.1X and EAP Walkthrough: EAP-TLS, PEAP and EAP-TTLS

Follow an enterprise Wi-Fi login message by message between the client, the AP and the RADIUS server: the TLS tunnel, the certificates, the inner login, and the keys that come out at the end. Then break it on purpose and see where each kind of failure stops the exchange.

Three parties, two hops

In WPA2/WPA3-Enterprise the client (supplicant) proves who it is to a RADIUS server (authentication server), and the AP (authenticator) only relays. Over Wi-Fi the EAP messages travel in EAPOL frames; on the wired side the AP puts them in RADIUS packets. The EAP method decides how the proof works: EAP-TLS uses certificates on both sides; PEAP and EAP-TTLS build a TLS tunnel with only a server certificate, then send a username and password inside it. When the server accepts, it gives the AP the MSK; the first 256 bits become the PMK (384 bits for the 192-bit AKMs such as 00-0F-AC:12, IEEE 802.11-2024 12.7.1.3; with FT the second 256 bits become the MPMK instead, IEEE 802.11-2024 12.7.1.6), and the 4-way handshake makes the session keys.

1 · The login

EAP method

2 · The messages

Each arrow is one EAP message. Between the client and the AP it travels in an EAPOL frame; between the AP and the server in a RADIUS packet (Access-Request up, Access-Challenge, Access-Accept or Access-Reject down). Highlighted messages travel inside the TLS tunnel, encrypted.

Clientsupplicant
APauthenticator
RADIUS serverauthentication server

3 · The methods compared

Definitions

↗ opens a term's full entry in the Wi-Fi Glossary, which explains over 400 Wi-Fi terms with their IEEE 802.11 references.

Notes