# Use your own RADIUS server with Trustaige device certificates

> Let the RADIUS server you already run admit devices by their Trustaige certificates, check standing over OCSP or the CRL, through every rollover.

Source: https://docs.trustaige.com/manage/own-radius-server

Replace these placeholders with your organization's own values:

- `<your-network-ca-id>`: Network authority ID, for example `3b8f6a1e-5c2d-4e7f-9a10-6d4c2b8e1f35`. The ID in the authority’s CRL address, under Your RADIUS server on the network’s page.

Your offices already run a RADIUS server, and you want managed devices to join
your Wi-Fi or wired network with the certificate Trustaige gives them, not a
password. Trustaige delivers the network profile and the certificate to every
device it manages; your server decides who joins. Nothing about the person
reaches your server: it sees a device certificate, checks that your
organization's authority issued it, and asks Trustaige whether the device is
still in good standing.

1. Device → Access point: joins the network (802.1X)
2. Access point → Your RADIUS server: Access-Request with EAP-TLS
3. Your RADIUS server → Device: your server certificate, checked against the names and CA in the profile
4. Device → Your RADIUS server: the device certificate, proved by its hardware key
5. Your RADIUS server → Trustaige: OCSP: is this certificate good?
6. Trustaige → Your RADIUS server: good, revoked, or on hold
7. Your RADIUS server → Access point: Access-Accept or Access-Reject

## Why a certificate in hardware

Each device's private key is made inside its own hardware and never leaves it:
the TPM on a Windows PC, the Secure Enclave on a Mac, iPhone or iPad, StrongBox
or the TEE on Android. The key can sign a handshake; it can't be copied to
another machine. So a certificate from Trustaige proves that this exact device
is joining, and nobody types or shares anything.

Trustaige renews each certificate before it expires, and stops vouching for
it when the device leaves. Your server needs no enrollment of its own: it trusts your
organization's certificate authorities once, and every managed device after
that is covered.

## Choose a path

You can keep your server as the one that decides, or let it hand the new
network to Trustaige RADIUS, which checks the device, its owner and its
posture on every join.

| Your server | Trusts Trustaige certificates | Revocation | Guide | Or forward |
|---|---|---|---|---|
| Windows NPS | Not for devices that exist only in Trustaige | — | — | [Windows NPS](/manage/own-radius-nps) |
| Cisco ISE | Your authorities, with an issuer condition | OCSP | [Cisco ISE](/manage/own-radius-cisco-ise) | [Forward from Cisco ISE](/manage/forward-from-cisco-ise) |
| Aruba ClearPass | Your authorities | OCSP | [Aruba ClearPass](/manage/own-radius-clearpass) | [Forward from ClearPass](/manage/forward-from-clearpass) |
| FreeRADIUS | Your authorities (`ca_file`) | The CRL | [FreeRADIUS](/manage/own-radius-freeradius) | [Forward from FreeRADIUS](/manage/forward-from-freeradius) |
| FortiAuthenticator | Your authorities, as trusted CAs | The CRL | [FortiAuthenticator](/manage/own-radius-fortiauthenticator) | [Forward from another server](/manage/forward-from-radius-server) |

Any other server that proxies by attribute can forward a new network to
Trustaige RADIUS the same way, while it keeps serving everything else: see
[Forward from another server](/manage/forward-from-radius-server).

## Set up the network in the hub

1. In the hub, open **Devices › Networks** and choose **Add network**.

2. **Network.** Give it a name and the SSID your access points broadcast, and
   choose WPA3-Enterprise or WPA2-Enterprise.

3. **Server.** Choose **Your RADIUS server**, then enter:
   - **Server names**: the names on your RADIUS server's certificate, separated
     by commas. Devices refuse a server presenting any other name.
   - **Your server's certificate authority**: the CA your server's certificate
     chains to, in PEM. Give the root of that chain: Windows trusts a server
     only through a root it holds, and Trustaige installs the certificate you
     give here as one. Devices trust only this CA for this network, so no other
     server can pose as yours.

   The hub checks the certificate when you continue. A network on your own
   server can't be saved without both, because devices would otherwise be told
   to trust any server.

4. **Who may join** and **Devices.** Choose whose devices receive the network.
   Only those devices are sent the profile.

5. **Review**, then finish. On the network's page, the **Your RADIUS server**
   panel opens everything your server needs, with a link to the guide for it.

## What your server needs

The network's page has a **Your RADIUS server** panel; **Trust bundle,
revocation and vendor guides** opens the page your server's engineer works
from. It has:

| Section | What it holds | Where it goes |
|---|---|---|
| **Trust bundle** | Your organization's ECDSA authorities, every generation still in use, in one PEM file (**Download**), each with its state, fingerprint, OCSP and CRL addresses | Your server's trusted CAs for client authentication |
| **Device certificates** | The fields every device certificate carries | Your server's authorization rule (see [The device certificate](#the-device-certificate)) |
| **Revocation** | The current authority's OCSP and CRL addresses, and whether non-compliant devices are reported as on hold | Your server's revocation checks |
| **For servers that cannot trust an intermediate** | The platform root (**Download root**), and each authority's subject and SHA-256 fingerprint to pin | Only for a server that can't anchor on an authority below a root (see [the trust anchor rule](#the-trust-anchor-rule)) |
| **Set up your server** | A link to each vendor guide | Your engineer |

Each authority has three addresses, all with the ID shown in its CRL address:

| Address | What it serves |
|---|---|
| `https://id.trustaige.com/pki/ocsp/<your-network-ca-id>` | OCSP, by GET or POST |
| `https://id.trustaige.com/pki/crl/<your-network-ca-id>.crl` | The authority's CRL, in DER |
| `https://id.trustaige.com/pki/ca/<your-network-ca-id>.crt` | The authority's own certificate, in DER, for a server that imports one file per CA |

The same bundle and addresses are on **Certificates**, in the **Networks**
group, under **For your own RADIUS server**: **Download trust bundle** saves
`trustaige-network-trust.pem`, and **Download with root** saves
`trustaige-network-trust-with-root.pem`, the bundle with the root after it.

## The trust anchor rule

Give your server **your organization's authorities**, never the platform root
on its own. Trustaige's platform root signs the authority of every
organization on Trustaige, so a server that trusts the root alone would admit
another organization's devices. Your authorities sign only your devices.

Some servers anchor trust only on a self-signed root. For those, the guide
adds the root **together with** a check on the issuer, so the root completes
the chain and the issuer check keeps it to your authorities. Prefer the bundle
wherever your server accepts it: an anchor on your own authorities matches
their keys, while an issuer check matches a name.

> **Note:** Whether each vendor anchors on an authority below a root (partial-chain
> support) hasn't been confirmed in Trustaige's lab yet. Each guide says what the
> vendor's own documentation and software say, and which setting to fall back to.

## Rollover

Each authority lasts two years. Twelve months before one expires, Trustaige
issues the next generation and introduces it for 30 days before it signs
anything. Every administrator in your organization is emailed when the new one
is issued, and again before it takes over.

**Certificates** lists each generation with its state:

| State | Meaning | What your server does |
|---|---|---|
| **Current** | Signs every new device certificate | Trusts it |
| **Takes over on** a date | Issued, not signing yet | Add it now, so it's trusted before the first device renews onto it |
| **Retiring** | No longer signs; its certificates are still in use | Keep trusting it until **certificates in use** reaches zero |

The trust bundle always lists every generation still in use, so downloading it
again and replacing the old file is enough. Remove a retiring authority only
after its last certificate has expired; at the latest, that is the authority's
own expiry date. Each authority answers OCSP and publishes its CRL at its own
addresses, and every certificate names the ones of the authority that issued
it.

## Revocation and standing

The OCSP responder ([RFC 6960](https://www.rfc-editor.org/rfc/rfc6960)) and
the CRLs ([RFC 5280 §5](https://www.rfc-editor.org/rfc/rfc5280#section-5))
answer from the device's **standing**, the same facts Trustaige RADIUS checks
on every join:

| The device | OCSP | CRL |
|---|---|---|
| Its certificate was revoked | `revoked`, with no reason code; final | Listed, no reason code |
| Removed, blocked or deleted, in Lost Mode, or its owner's membership ended, expired or was suspended | `revoked`, reason `certificateHold` (6) | Listed as `certificateHold` |
| Non-compliant, when you turn on **Report non-compliant devices as on hold** | `revoked`, reason `certificateHold` | Listed as `certificateHold` |
| Anything else | `good` | Not listed |

A hold is lifted as soon as the fact changes: the device is unblocked, found,
compliant again, or its owner returns. Only a revocation is final
([RFC 5280 §5.3.1](https://www.rfc-editor.org/rfc/rfc5280#section-5.3.1)), so
your server should treat a hold as a refusal and look again later, which every
OCSP client and CRL check already does.

**Report non-compliant devices as on hold** is on **Certificates**, in the
**Networks** group. Off by default: Trustaige RADIUS judges compliance on its
own at every join, and a server you run sees it only through this setting.

How fresh the answers are:

- A change to a device, its owner or its certificate reaches OCSP at once, and
  the CRL within 10 seconds. Every CRL is also republished hourly, and is valid
  for 90 minutes, so one missed run never leaves your server with an expired
  list.
- An OCSP answer is valid for an hour and may be cached for up to 60 seconds.
  Requests with a nonce ([RFC 8954](https://www.rfc-editor.org/rfc/rfc8954))
  get a fresh, nonced answer every time.
- When Trustaige can't read a device's standing, OCSP answers `tryLater`,
  never `good`. A certificate your authority didn't issue is `unknown`, and a
  request about the platform root is `unauthorized`.
- OCSP answers are signed by a responder certificate that each authority
  issues for itself (`id-kp-OCSPSigning`, with `ocsp-nocheck`), included in
  every answer.

> **Important:** Set your server to refuse when OCSP fails, not to let the device in. A server
> that soft-fails admits a revoked device whenever it can't reach Trustaige.

The status addresses are HTTPS only. Whether ISE, ClearPass and
FortiAuthenticator fetch OCSP and CRLs over HTTPS hasn't been confirmed in
Trustaige's lab yet. FreeRADIUS's OCSP client speaks plain HTTP only, so its
guide uses the CRL.

## The device certificate

Every device certificate Trustaige issues for networks has the same shape:

| Field | Value |
|---|---|
| Subject | `CN=tq-<device ID>`, where the device ID is Trustaige's ID for the device |
| Subject alternative name | `URI:urn:uuid:<device ID>` |
| Extended key usage | `clientAuth` |
| Key usage | `digitalSignature`, `keyEncipherment` |
| Key | ECDSA P-256, made in the device's TPM, Secure Enclave, StrongBox or TEE |
| Lifetime | About a year, never past its authority's own expiry |
| Authority information access | OCSP and caIssuers at the issuing authority's addresses |
| CRL distribution point | The issuing authority's CRL |
| Issuer | `CN=<organization> MDM CA`, the same name in every generation |

The same certificate is used on every network the device joins: on Windows,
the device-trust certificate Warden keeps (Windows selects it by your
authorities' SHA-1 thumbprints); on Apple devices, a network certificate made
for the network profile; on Android, Envoy's device certificate.

> **Important:** Your authorities also sign certificates that aren't for networks: the
> identity a Mac, iPhone or iPad uses for device management (`CN=eid:…`), and
> RadSec certificates for access point controllers (`CN=nas-…`). Admit only
> subjects that start with `tq-`, or a subject alternative name that starts with
> `urn:uuid:`. Each guide shows the rule for its server.

Don't key a rule on the outer identity (the RADIUS `User-Name`). What each
platform sends there hasn't been recorded in Trustaige's lab yet; the
certificate is what your server can rely on.

## Troubleshooting

**“a network on your own RADIUS server needs its server names and CA, or devices could be told to trust any server”**

The **Server** step is missing the server names or the CA. Enter both; the
network can't be saved without them.

**“the server CA must be a PEM certificate, so devices can pin it”**

The CA you pasted isn't a PEM certificate. Paste the text from
`-----BEGIN CERTIFICATE-----` to `-----END CERTIFICATE-----`, including both
lines. If you have a `.cer` or `.der` file, convert it first:
`openssl x509 -inform DER -in ca.cer -out ca.pem`.

**Devices don't try to join, or Windows says it can't connect to this network**

The device didn't accept your server's certificate. Check that the names on
your server's certificate are exactly the **Server names** you entered, and
that the CA you gave is the root your server's certificate chains to. Your
server must send its intermediate certificates with its own.

**Your server says the client certificate's issuer is unknown**

Your server doesn't trust the authority that issued the device's certificate.
Download the trust bundle again and add every authority in it. During a
rollover there are two.

**Every device is refused after OCSP or the CRL was turned on**

Your server can't reach `id.trustaige.com` over HTTPS on port 443, or doesn't
fetch status over HTTPS. Check its outbound access first, then the vendor
guide for how that server checks status.

**One device is refused with a revoked certificate**

Open the device in the hub. If it's blocked, in Lost Mode, or its owner is no
longer an active member, its certificate is on hold, and the hold lifts when
that changes. If its certificate was revoked, the revocation is final: the
device joins again only with a new certificate.
