802.1X with UniFi, RADIUS, and Intune certs, minus the pain
How I stand up 802.1X on UniFi with RADIUS and Intune certificates, including the failure modes that waste the most time.
PSK Wi-Fi is fine until it isn’t. The day you need to bounce a departing user without changing the password for everyone else, you will wish you had 802.1X last quarter.
I’ve stood up EAP-TLS on UniFi with RADIUS and Intune-issued certificates often enough that the path is familiar. The pain is rarely “can UniFi do it.” The pain is a clock, a missing intermediate, a trusted server name that doesn’t match the cert, or a device that never got a client certificate and just looks “bad at Wi-Fi.”
EAP-TLS is the version I want. Both sides present certificates, there is no shared password to leak, and Intune can put the client cert on the machine before anyone thinks about Wi-Fi. PEAP with a username and password still shows up, but it is a weaker story. This post is about the cert path.
The short flow: the client associates, UniFi hands the session to RADIUS, both sides prove themselves with certificates, and RADIUS returns an accept, often with a VLAN. Intune’s job is to have that client cert, plus the trusted roots, already on the device.
Get the roles straight before you click anything
Four pieces have to agree, and each one fails in its own dialect.
-
The CA. A real internal CA, or a cloud PKI that Intune can use. You need a server certificate for RADIUS and a client template for devices or users. The client template needs the Client Authentication EKU. I prefer a DNS SAN on the server cert that matches the name clients are told to trust, like
radius.corp.example. -
RADIUS. This can be Windows NPS, FreeRADIUS, or a hosted service that supports EAP-TLS. UniFi needs the server IP, the shared secret, and usually accounting. The server needs the UniFi gateway or the APs as clients, depending on who sends the requests. If the NAS IP isn’t in the client list, you get silent discards, not a helpful error on the phone.
-
Intune. It delivers the client cert (PKCS, SCEP, or a cloud PKI profile) and the Wi-Fi profile. The Wi-Fi profile should select EAP-TLS, point at the client cert, and name the trusted RADIUS server names. If those names don’t match the server cert, the client refuses to connect and the user says “it just spins.”
-
UniFi. A RADIUS profile, an SSID set to WPA2 or WPA3 Enterprise, and RADIUS-assigned VLANs if you want laptops and phones on different networks from the same SSID. The SSID is the easy part. Leave a temporary onboarding SSID only if you truly need it, and turn it off when you don’t.
Do not start by testing 802.1X on the production SSID at 9 AM Monday. Stand up a lab SSID, a test VLAN, and one or two devices you can wipe.
Certificates, which are most of the project
If EAP-TLS fails, I assume certificates before I assume UniFi.
-
Time has to be right. A cert that looks valid in a browser can still fail EAP if the device clock is wrong, or if the RADIUS host misses the not-before. Point everything at NTP first. This dull fix closes a surprising number of tickets.
-
Send the chain. The server cert should arrive with the intermediates the client needs, and the client needs the root already trusted. A common Intune miss is deploying the client cert but not the CA chain. The RADIUS log looks like a TLS handshake failure. The phone says nothing useful.
-
Match the name the client trusts. If the Intune Wi-Fi profile says the trusted server is
radius.corp.example, the server cert needs that name in the SAN. A cert fornps01.corp.exampleonly will fail that check. Don’t disable the server-name check to get it working and then forget it. -
Machine certs for the machine, user certs for the user. If you want the laptop on corp Wi-Fi at the login screen, you need a device certificate and a profile that uses it. A user cert that only exists after sign-in leaves the device offline on the lock screen. Pick one, or deploy both on purpose.
-
Watch the lifetime. A one-year client cert is fine if renewal actually happens. SCEP and cloud PKI can renew quietly. A PKCS cert you imported once will expire at the worst time. Test renewal on a device, not just issuance.
-
Revocation has to be reachable, or disabled on purpose. If CRL or OCSP checks can’t get out, you get flaky failures that look like “Wi-Fi is fine except in this room.” Publish revocation where the check happens, or know that you turned the check off.
The shape is the same everywhere: a client cert with the right EKU, a server cert with the right name, and a chain both sides already trust.
UniFi and RADIUS settings that actually matter
The SSID wizard will get you close. These are the bits I double-check.
-
One RADIUS profile, used on purpose. Store the shared secret in your password manager, not in a chat. 1812/1813 is still the usual port pair. If you have two sites, don’t reuse a secret you can’t rotate.
-
Know which device is the RADIUS client. In some designs the gateway proxies 802.1X. In others the APs talk to RADIUS directly. The client list has to match the packets you actually send. A mismatch wastes hours because the SSID looks right and the server log is empty.
-
VLAN assignment is a policy, not a hope. If RADIUS sends
Tunnel-Private-Group-IDand UniFi isn’t set to honor a RADIUS-assigned VLAN, everyone lands on the SSID’s default VLAN. That’s fine if you wanted one VLAN. It’s a bug if you wanted phones on10.22.20.0/24and laptops on10.22.10.0/24. -
Accounting is useful when it works. Enable it if you want session logs. Don’t debug a failed association by staring at accounting. Auth first, then accounting.
-
Have a break-glass path that isn’t open guest. A wired port in a locked room, or a short-lived PSK SSID you disable after onboarding, is enough. An always-on open network named
Setupin the lobby is how 802.1X becomes theater.
On the Intune side, assign the cert profile first, confirm the cert is present in the store, then assign the Wi-Fi profile. The other order creates a day of devices that “got the SSID” and have nothing to authenticate with.
How I test, and the failures I see first
Test with one Windows laptop and one phone, both already enrolled, before you widen the assignment.
-
Confirm the cert is on the device. On Windows, look in the personal or computer store for the client cert, and confirm the root is trusted. If it isn’t there, stop. This is an Intune delivery problem, not a UniFi problem.
-
Read the RADIUS log, not the Wi-Fi icon. Accept, reject, or timeout? A reject with a cert error is one path. A timeout is often reachability, a bad secret, or a NAS IP the server doesn’t know.
-
From the AP or gateway, can you reach RADIUS on 1812? If you can’t, no amount of profile tweaking will help. Allow that traffic on the management VLAN you chose.
-
Watch a success all the way to an address. An 802.1X accept that lands on a VLAN with no DHCP looks like a wireless failure. Confirm the VLAN, the DHCP scope, and an address in the range you expected, like
10.22.10.0/24.
Common rejects, in the order I check them: no client cert, a cert from the wrong CA, server name doesn’t match, time is wrong, intermediate missing, RADIUS secret or client IP is wrong, and the user is still on the old PSK SSID.
When it works, add a departing-user test. Remove the cert or disable the account the way you will in real life, and confirm the next session fails. If it doesn’t, you built a new shared secret with extra steps.
If you want a short version: use EAP-TLS, deploy the chain and the client cert with Intune before the Wi-Fi profile, and make the trusted server name match the RADIUS cert. Test one device against the RADIUS log, confirm the VLAN and DHCP, and keep a narrow break-glass path that you actually turn off.
The SSID is the easy click. The certs are the work.