Skip to content

Passwordless Wi-Fi and VPN with EAP-TLS

With EAP-TLS, a device logs in to Wi-Fi or a VPN with a certificate, not a password. There is no password to phish, share or leak. Only a device that holds a certificate from your CA, and has the private key for it, gets in.

BastionXP issues the certificates. You keep your existing RADIUS server, Wi-Fi access points and VPN gateways. This page explains how they work together, and what to set up on the RADIUS side.

BastionXP does not replace your RADIUS server

BastionXP is the CA. Your RADIUS server (or the one built into your Wi-Fi or VPN product) checks the certificate. The settings on this page are the same for any RADIUS server that supports EAP-TLS. Where you find them depends on the product.

How it works

  1. The device has a certificate from BastionXP, and the private key for it. With ACME Device Attestation, the key is in the device's secure hardware and cannot be copied out. See How it works.
  2. The device connects to the Wi-Fi access point or the VPN gateway. The access point or gateway passes the login to the RADIUS server. It does not look at the certificate itself.
  3. The RADIUS server and the device set up a TLS connection. The device proves that it owns its certificate. The RADIUS server proves that it owns its certificate, so that the device does not log in to a fake network.
  4. The RADIUS server checks the device's certificate:
    • it chains to your authority's CA,
    • it has not expired,
    • it has not been revoked, and
    • it is allowed to be used for client authentication.
  5. If the checks pass, and your policy allows the device, the RADIUS server accepts the login.

No password is involved. With ACME Device Attestation, a stolen configuration profile is useless to an attacker, because the private key is in the device's hardware and cannot be copied out. A device that enrolled with SCEP is different: the key is a normal key, and anyone with the SCEP challenge password can enroll. See Migrate from an existing SCEP CA.

What you need

Item Where it comes from
A device certificate on every device Your BastionXP authority, through ACME device attestation or SCEP. The built-in device profile allows TLS client authentication.
A server certificate on the RADIUS server Your BastionXP authority, for example with bxp-cli tls or an ACME client. The built-in server profile allows TLS server and client authentication.
The CA certificates on the RADIUS server The authority's page in Authority Manager.
Revocation addresses that the RADIUS server can reach The authority's page, under Revocation status.

Step 1: turn on revocation first

A certificate contains the CRL and OCSP addresses only if revocation was turned on when it was issued. So turn them on in the authority before you enroll the devices that will use Wi-Fi or VPN. See Revocation.

Both addresses use plain HTTP on purpose. The answers are signed, so plain HTTP does not weaken them, and it avoids a circular check: with HTTPS, the RADIUS server would first have to check the revocation of the HTTPS server's own certificate. See Why BastionXP also listens on HTTP. The RADIUS server must be able to reach these addresses over the network.

Step 2: give the RADIUS server your CA

The RADIUS server must trust your CA, and only your CA, for these logins. If it trusts a public CA bundle, anybody with a certificate from any public CA could try to log in.

  1. In Authority Manager, open the authority that issues the device certificates.
  2. Download the Root certificate and the Intermediate certificate.
  3. Put them in the RADIUS server's list of CA certificates for EAP-TLS. Include the intermediate, so that the server can build the whole chain.

Step 3: give the RADIUS server its own certificate

The device must trust the RADIUS server, too. Get a server certificate for the RADIUS server from a BastionXP authority. A server certificate from the server profile lasts 90 days by default, so renew it automatically. See Path B in Choose your path.

The devices must trust the root CA that signed it. If the devices already trust your BastionXP root, that is done. If not, send the root certificate to the devices with your device management system.

Step 4: set the EAP-TLS policy on the RADIUS server

Setting What to set
Trusted CAs Only your BastionXP root and intermediate.
Revocation checking Turn it on, with the CRL address or the OCSP address from the authority's Revocation status.
Client certificate required Yes.
Allowed use Client authentication.
Who may log in Match what is in the certificate. The subject of a device certificate is usually the device's serial number. To see exactly what your certificates contain, run openssl x509 -in device.crt -noout -subject -ext subjectAltName.

If you run several authorities, for example one for employees' devices and one for guests' devices, you can give different RADIUS policies to each by matching the issuer.

Step 5: set up the devices

The device needs a Wi-Fi or VPN profile that says: use EAP-TLS, use the certificate from BastionXP, and trust the RADIUS server's CA. You send it with your device management system, after the certificate profile that gets the device its identity. For Jamf Pro and Fleet, see Jamf Pro integration and Fleet DM integration.

Step 6: test it

First test the certificate on its own, with openssl. Put the intermediate and the root CA certificate in one file, chain.pem, and download the authority's CRL. The CRL is in DER format, so convert it to PEM:

curl -so intermediate.crl http://ca.example.com/authorities/devices/crl/<issuer ID>
openssl crl -inform DER -in intermediate.crl -out intermediate.crl.pem
openssl verify -CAfile chain.pem -crl_check -CRLfile intermediate.crl.pem \
    -purpose sslclient device.crt

A good certificate prints device.crt: OK. A revoked one prints error 23 at 0 depth lookup: certificate revoked. An expired one says that the certificate has expired.

Then test a whole login. eapol_test, which comes with wpa_supplicant, acts as a Wi-Fi client and talks to the RADIUS server directly, so you can test EAP-TLS without a real device.

Lifetimes, renewal and revocation

  • A certificate that ends stops working. The device must renew it before. With ACME device attestation, the device renews by itself. The default device lifetime is 1 year. Look at Overview in the portal for devices that expire soon. See Certificate lifecycle.
  • Revocation is not instant. When you revoke a lost device, the RADIUS server stops accepting it when it next refreshes its revocation information. By default, a CRL is valid for 24 hours and an OCSP answer for 1 hour. You can shorten both in the authority's settings. For a lost device, you can also remove or disable its access in your Wi-Fi or VPN system at once.
  • Check the clocks. A device or RADIUS server with a wrong clock sees good certificates as expired, or not yet valid.

When a login fails

What you see What to check
The RADIUS log says the certificate is from an unknown CA The RADIUS server does not have the root and the intermediate CA certificates. See step 2.
The log says the certificate is expired or not yet valid The certificate's dates, and the clock of the device and of the RADIUS server.
The log says the certificate is revoked Open the device in the portal. See Devices.
The log says the certificate cannot be checked for revocation The RADIUS server cannot reach the CRL or OCSP address, or the certificate was issued before revocation was turned on.
The device says the server is not trusted The device does not trust the CA that signed the RADIUS server's certificate. See step 3.
The device has no certificate In the portal, the device shows No identity. It has not enrolled yet. See Enroll devices.
The certificate is valid, but the login is refused The RADIUS policy. Check what the policy matches against the output of openssl x509.