Set up Wi-Fi with certificates on Android

Anyone joining company Wi-Fi or eduroam with a newer Android device runs into the fields “CA certificate” and “Domain”. The old shortcut “Don’t validate” is gone. That is a good thing: without validation anyone can set up an access point with the same name and harvest passwords.

The important fields

Case 1: RADIUS certificate from a public CA

If the RADIUS server has a certificate from a public CA (e.g. Sectigo, DigiCert, GlobalSign, also Let's Encrypt), it is easiest:

EAP method:              PEAP
Phase 2 authentication:  MSCHAPV2
CA certificate:          Use system certificates
Domain:                  radius.example.com
Identity:                user@example.com
Password:                ••••••••

The domain must match the name in the server certificate. Android also accepts a parent domain, so example.com matches radius.example.com.

Case 2: internal CA

If the RADIUS certificate comes from an internal CA (e.g. Active Directory Certificate Services with Windows NPS), first install its root certificate as a Wi-Fi certificate:

  1. Copy the CA file to the device (.crt or .cer, PEM or DER). If you only have a .p7b or a format Android doesn’t accept, the certificate converter converts it.
  2. Settings → Security → Encryption & credentials → Install a certificate → Wi-Fi certificate, choose the file, give it a name.
  3. In the Wi-Fi profile, select this certificate under “CA certificate” and enter the domain.

Case 3: EAP-TLS with client certificate

With EAP-TLS the device authenticates with its own certificate. You need a .p12 file with client certificate and key, also installed as a “Wi-Fi certificate”. In the profile choose EAP method TLS, CA certificate, domain, user certificate and, as identity, usually the name from the certificate.

If Android reports “incorrect password” when importing the .p12 although it is right, the file was created with OpenSSL 3. The fix is in Android says incorrect password when importing a certificate.

Typical errors

For admins: make it easy for users

FAQ

Why is “Don’t validate” gone?

Because a Wi-Fi network without server certificate validation is easy to imitate. An attacker sets up an access point with the same name and devices send it their credentials. Google therefore removed the option with Android 11.

What do I enter for “Anonymous identity”?

That is the name sent unencrypted before the tunnel is built. Many networks expect something like anonymous@example.com. Leaving it empty often works too. The real identity is then only sent inside the tunnel.

Do I have to set it up again at every certificate change?

Not in case 1, as long as the name stays the same. With an internal CA only when the root changes. A new RADIUS certificate from the same CA changes nothing for the devices.

Sources and documentation