Certificates and EAP-TLS
By the end you can
- Explain how Authcha's certificate authority works and when a certificate is accepted
- Issue a user certificate and a device certificate
- Configure a client for EAP-TLS and set the expected server name
- Revoke a certificate and make the device drop off at once
- Turn on CRL and OCSP for other systems that trust your certificates
Why certificates
With EAP-TTLS a person types a password. A password can be phished, reused or shared. With EAP-TLS the certificate is the credential: nobody types anything at the switch or access point, and there is nothing to phish. EAP-TLS runs alongside EAP-TTLS, MAB and the device-login flows, so you can move people and devices over one at a time.
How it works
- The certificate authority (CA). On first start the RADIUS service creates a private CA for this installation and uses it to issue its own server certificate. The console then takes the CA over: its private key is stored encrypted in the database under
PKI_KEY_ENCRYPTION_KEY, and is removed from the RADIUS service. From then on the console issues every certificate and renews the server certificate automatically. - Admission. A client certificate is accepted only if all of these are true: it chains to the Authcha CA, the console issued it and has not revoked it, it has not expired, and, for a user certificate, the user exists, is not locked and has an enabled user type. Authcha checks this at every connection, so revocation takes effect immediately with no CRL to publish.
- Identity. The session belongs to the certificate's owner: the user, or the device name. The name the device sends in the clear is ignored, so a certificate cannot claim to be someone else.
- Authorization. A certificate can name a device class, and the session then gets that class's VLAN, QoS and timeout, exactly like MAB. Posture still applies on top.
Issue a certificate
Network Access → Certificates → Issue certificate.
- Choose A user or A device. A user certificate signs in as an existing RADIUS user, so locking or deleting the user stops the certificate too. A device certificate signs in as the device name you give, and needs a device class.
- Optionally set a device class, a validity period (users default to 1 year, devices to 2, maximum 5 years), a MAC address for your records and DNS names.
- Choose where the key comes from:
- Generate here. Authcha makes the key and gives you a
.p12file and its password once. The private key is not stored, so neither can be shown again. For older macOS, iOS or Android that refuse the file, issue again with Legacy .p12 encryption. - Paste a CSR. The device keeps its own key and you paste its signing request. Only the public key is used.
Accepted keys: RSA 2048 bits or more, ECDSA P-256 and P-384.
Configure the client
Every client needs the CA certificate (download it under Certificate authority → Download CA certificate) and its own client certificate. Also set the expected server name, shown on the same page. Without it, a client trusts any certificate from the CA.
- Windows: import the
.p12into the user or computer store and the CA into Trusted Root Certification Authorities. Deploy a wired or Wi-Fi profile that uses Smart card or other certificate (EAP-TLS), with Verify the server's identity on and the server name filled in. At scale use Group Policy or Intune. - macOS and iOS: a configuration profile with a Certificate payload for the CA, a PKCS#12 payload for the client certificate, and a Wi-Fi or Ethernet payload with TLS and the trusted server name.
- Android: install the CA as a Wi-Fi certificate and the
.p12as a user certificate, then choose EAP method TLS, the CA, the server's domain and the user certificate. - Linux: NetworkManager with
802-1x.eap tlsand the CA, client certificate and802-1x.domain-suffix-match.
Revoke
Choose Revoke next to the certificate and pick a reason. The certificate is refused at its next connection. Also disconnect the current session is on by default: Authcha sends a Disconnect-Request so the device drops off immediately, which needs CoA configured on the switch or controller. Revocation cannot be undone. Issue a new certificate if access is needed again.
CRL and OCSP for other systems
Authcha asks its own database about every certificate, so it never needs a CRL. Other systems that accept your certificates, such as a VPN gateway, a web server or Windows, cannot ask the database. For them Authcha can publish a CRL for each CA, rebuilt the moment something is revoked, and an OCSP responder that answers good, revoked or unknown from the live database.
It is off until you turn it on under Certificates → Certificate authority → Revocation information. Enter the base URL those systems will use (a scheme, a name or address, and an optional port), turn on Publish, and save. From then on certificates you issue carry the CRL and OCSP addresses. Certificates issued earlier are not changed.
These feeds are published over plain HTTP on port 80, because a client checking the revocation of an HTTPS server's certificate cannot first fetch the list over that same HTTPS connection. Keep port 80 reachable from the systems that validate your certificates. They contain serial numbers of revoked certificates and nothing else.
The server certificate
Certificate authority shows the server certificate supplicants see. When the Authcha CA issued it, Authcha renews it 45 days before expiry with the same name and CA, so clients keep trusting it. A server certificate from your own CA is yours to renew, and Authcha then makes a separate CA for client certificates.
LabHands-on
Steps 1 and 2 on the demo as demo-admin (password Authcha-Demo-2026). The rest on your install. The public demo does not publish revocation information.
- Open Certificates on the demo and look at issued certificates, their identity, class and expiry.
- Open Certificate authority and find the server name and the CA download.
- On your install, issue a user certificate for a test user, with Generate here. Save the
.p12and its password. - Issue a device certificate from a CSR you made with
openssl. - Configure a Linux client with NetworkManager (or
eapol_testwitheap=TLS) and sign in with the certificate. - Revoke the certificate with Also disconnect the current session on. Confirm the session ends and the next login is refused.
- Turn on Publish for revocation information, issue a new certificate, and inspect it for the CRL and OCSP addresses.
Check yourselfQuiz
Cheat sheetKeep this
- EAP-TLS: the certificate is the credential. No password, nothing to phish.
- Accepted only if: chains to the Authcha CA, issued and not revoked by the console, not expired, and (for users) the user is enabled. Checked at every connection.
- Issue: Network Access → Certificates. Keys: RSA 2048+, P-256, P-384. Max 5 years.
.p12shown once. - Clients need the CA and the expected server name.
- Revoke also disconnects the session by default. It is permanent.
- CRL and OCSP: off by default, plain HTTP port 80, new certificates only.
- Back up
PKI_KEY_ENCRYPTION_KEY. - Read more: Certificates, Enrollment.