Skip to content

TACACS+ over TLS

TACACS+ over TLS (RFC 9887) wraps the TACACS+ session in TLS instead of the shared-secret obfuscation of classic TACACS+. Both sides authenticate with certificates: Taranac presents a server certificate, and the device presents a client certificate from a CA Taranac trusts. The policy, profiles, command sets and logging are exactly those of TACACS+. Only the transport changes.

The listener is on by default and runs next to the classic one:

ListenerPortVariable
Classic TACACS+TCP 49TACACS_PORT
TACACS+ over TLSTCP 6049TACACS_TLS_PORT

The port is one number end to end: the port published on the host, the port the daemon listens on inside its container and the port AAA → Settings → TACACS+ shows (read-only). To change it, edit TACACS_TLS_PORT in .env and run ./taranac up -d. In a cluster, keep it the same on every node. Enable TLS Listener on the same page turns the listener off.

Platforms with TACACS+ over TLS support include Cisco IOS-XE 17.18+, IOS-XR 7.x+ and NX-OS 10.x+. Taranac accepts TLS 1.3 and TLS 1.2, because some device firmware negotiates only 1.2.

A fresh installation needs no TLS configuration on the Taranac side:

  • The listener presents a generated server certificate, signed by the Taranac Infrastructure CA and naming this node’s addresses.
  • The listener trusts client certificates from every internal CA, so a device holding a certificate from your Taranac PKI, whether issued by hand or enrolled over EST or SCEP, can connect.
  • Revoked client certificates are refused, from the CRLs Taranac already holds (see Revocation).

The installer’s final screen prints the TLS endpoint (<node address>:6049) next to the EST gateway URL.

What a device needs:

  1. An entry in the device inventory covering the address it connects from, with TACACS+ enabled. TLS is accepted only from inventoried devices, whatever certificate the device presents (see Only inventoried devices). Enrolling a certificate over EST or SCEP does not need an inventory entry; logging in over TLS does, so add the device before its first TLS login.
  2. Trust the CA that signed the server certificate. For the generated certificate, this is the Taranac Infrastructure CA. Download it from Settings → PKI / Certificates: select the CA in the tree and click Download CA certificate (PEM).
  3. A client certificate from a CA the listener trusts, with its key. See PKI & trust to issue one, or EST enrollment and SCEP enrollment to enroll the device automatically.
  4. The TACACS+ server configured on port 6049 with TLS, at an address the server certificate names.

The Server Certificate card on AAA → Settings → TACACS+ manages the certificate the listener presents. Taranac sends it with its intermediate CAs, so a device that trusts only the root can still build the chain.

Each node generates its own server certificate, signed by its Infrastructure CA. Its subject alternative names list the node’s addresses:

  • TARANAC_NODE_IPS from .env (the installer detects it; ./taranac update adds it when missing)
  • TARANAC_DOMAIN and NODE_ADDRESS, when set

A device configured with the server’s IP address checks for that address among the IP SANs, so these addresses matter. Each time the api container starts, the certificate is checked and reissued if it does not cover all of these addresses or expires within 30 days. The listener picks up the reissued certificate on its own, without a restart.

After the node’s address changes, edit TARANAC_NODE_IPS in .env and run ./taranac up -d.

Replace the generated certificate when your devices should verify Taranac against a CA they already trust:

ActionWhen
Issue from Internal CAThe devices trust one of your Internal CAs. The form opens with this node’s values filled in (see below). A hostname CN is also written as the first DNS SAN.
Upload CertificateThe certificate comes from a corporate or public CA. Create the key and the CSR outside Taranac, have the CA sign it, then upload the certificate, its key and the CA chain (intermediates and root).
Generate Self-SignedLabs only. Every device must be told to trust this one certificate.

Issue from Internal CA starts from this node. IP addresses (SAN) holds the node’s IP addresses from TARANAC_NODE_IPS and NODE_ADDRESS, Common Name (CN) its host name from TARANAC_DOMAIN, and Issuing CA the Default CA from PKI Settings → Certificate Defaults when that CA can issue. Every value stays editable. A CA that cannot issue (disabled, expired, revoked, or under an unusable parent) is shown greyed with the reason; see CA status and lifecycle. If your devices connect to Taranac under a corporate root, issue from an Internal CA placed under that root (see Taranac under your corporate root).

Then click Deploy to tac_plus-ng. The daemon reloads with the new certificate, with no restart, and its listening sockets stay open across the reload: no connection is refused or reset while it applies. If the daemon cannot load a certificate or key, only TLS handshakes fail: classic TACACS+ on port 49 keeps working.

Deploy asks first when the CA changes. If the certificate about to be deployed was issued by another CA than the one the daemon serves on this node (the generated certificate included), Deploy names both CAs and asks for confirmation (Deploy anyway). Devices that trust only the current CA reject the new certificate and stop authenticating over TLS until they trust the new CA.

Restore previous. When an earlier deployed certificate exists and has not expired, the card offers Restore previous. The confirmation shows its subject, issuer, last deployment and expiry; Restore and deploy makes it the active certificate again and deploys it at once. Nothing is deleted: the certificate it replaced stays on record and can be restored the same way, so two restores swap back. The restore is audit-logged (TACACS_SERVER_CERT_RESTORED).

Addresses the certificate does not name. The card compares the active certificate with this node’s addresses (TARANAC_NODE_IPS, TARANAC_DOMAIN, NODE_ADDRESS) and lists the ones it has no SAN for: Not named in the certificate: …. A device checks the address it dials against the certificate’s SANs: an IP address against the IP SANs only, a host name against the DNS SANs. The CN is not consulted. Cisco IOS-XR refuses a server certificate without an IP SAN for the address it dials. Issue a certificate that includes the listed addresses.

What devices receive. server.crt holds the server certificate followed by its intermediates, with the root left out. For a certificate issued from an Internal CA, the intermediates are that CA’s chain as it is at deploy time, including a corporate chain above it. When that CA is renewed or its chain is replaced, every node that serves the certificate rewrites server.crt within 30 seconds, with the same certificate and key and no redeploy. A node serving its generated certificate or an uploaded one is left alone.

A certificate you deployed is never replaced by the automatic reissue, whatever addresses the node gets later. You keep it current yourself: watch its expiry on the card.

The TLS Client Trust card, on the same page, decides which CAs may sign the certificates devices present. It has two modes:

ModeTrusted
All internal CAs (default)Every enabled, active Internal CA, the Infrastructure CA included. Imported Trusted CAs are not included.
Selected CAsExactly the CAs you add to the two lists: Internal CAs and Trusted CAs (imported).

Imported CAs are trusted only when selected. A Trusted CA is usually a corporate root imported for EAP-TLS, and trusting it here would make every domain laptop’s certificate a valid TACACS+ client certificate (only the inventory rule would still keep those laptops out). To accept device certificates from an external CA, switch to Selected CAs and add it under Trusted CAs.

Use Selected CAs to narrow trust, for example to the one CA that issues your network devices’ certificates.

In All internal CAs mode, the card shows Trusted now: the CAs the listener actually trusts at the moment. A CA you create later is added automatically.

Rules that apply in both modes:

  • Nothing selected means no client. In Selected CAs mode with both lists empty, no TLS client can authenticate. While the listener is on, the card warns when no CA can be used.
  • A disabled or inactive CA is not trusted. The same applies to an Internal CA issued under a disabled or inactive CA. The card marks such a CA Not in use.
  • Selecting an intermediate CA trusts its whole root. The listener needs the chain up to the root, so a certificate from any CA under that root is accepted. To separate two issuers, give them separate roots.
  • Changes apply without a restart. Save the card, and TACACS+ auto-reload applies the change to new connections, the same way it applies policy changes.

Choosing CAs from the lists needs the NAC PKI view permission. Without it, the card shows the current selection read-only.

Issuing chains in the bundle. An Internal CA signed outside Taranac (a SubCA under your corporate root) cannot be verified on its own: the daemon accepts no partial chain. The listener therefore also trusts that CA’s issuing chain up to the corporate root, and the card lists it under Issuing chains in the bundle. A certificate from any CA under that corporate root then passes verification, which is one reason TLS is accepted only from inventoried devices (see Only inventoried devices).

A client certificate that its CA has revoked is refused. Revocation checking is always on and has no switch; what is checked follows from the CRLs Taranac holds:

SourceWhere its CRL comes from
An Internal CATaranac’s own CRL for that CA, the one FreeRADIUS and the public CRL distribution point use.
A Trusted CA (imported)The CRL stored on the CA under NAC → Trusted CAs, uploaded or fetched from its URL.
A certificate above a SubCA (its issuing chain)The upper-chain CRL on the CA’s Issuing chain card.

How it works:

  • Within 30 seconds, without a reload. The TACACS+ TLS Revocation Sync job runs every 30 seconds on every node and writes the revoked serials where the daemon looks them up on every handshake. A revocation, or a new CRL, takes effect at the next handshake after that cycle. The job has no enable switch and does not depend on TACACS+ auto-reload.
  • The certificates the device sends are checked: its own certificate and every CA certificate it sends with it.
  • A CA without a CRL is not checked. Removing a CA’s CRL turns its check off. A CRL past its next update is still used until a newer one replaces it.
  • Base CRLs only. Delta CRLs and OCSP are not used for TACACS+, so a revocation published by an external CA counts from its next base CRL.
  • A refused certificate is logged as TLS: the device’s certificate is revoked (see Refused connections).

The TLS Client Trust card shows, under Revocation, where each trusted CA’s revocations come from, with each certificate of an issuing chain indented below its CA:

ShownMeaning
Automatic — Taranac’s own CRLAn Internal CA, checked against the CRL Taranac signs.
CRL loaded, next update …A Trusted CA or upper-chain certificate with a stored CRL. last download failed: … is added when the last download from its URL failed; the stored CRL is still used.
Not checked — no CRLNo CRL is stored: its certificates are not checked.
Not checked — CRL download failing: …A CRL URL is set, but no CRL has been downloaded yet.

The CRL itself is set at the CA, never on this card: Internal CAs and their issuing chains under NAC → PKI, imported CAs under NAC → Trusted CAs. See CRL — keeping revocation enforced.

Two alerts belong to this check (source tacacs_config):

AlertSeverityWhen
TACACS+ TLS revocations not appliederror, per nodeThe revocation files could not be written on this node (free space, inodes), or a CRL could not be applied. Revocations since the last successful update are not enforced; nothing already in force is removed until it is fixed, and the CRLs that could be applied are.
TACACS+ TLS trusts a revoked CAwarningA CA the listener trusts has been revoked by its own issuer. The daemon checks only the certificates a device sends, so a device that sends its own certificate alone is still accepted under that CA. Disable or deselect the CA, or replace its chain.

TLS secures the transport. It does not change how Taranac decides:

  • Only inventoried devices log in over TLS. A TLS connection from an address that no enabled device with TACACS+ covers is refused, whatever its certificate: such an address is never verified against the trusted CAs. It is logged as TLS: the address is not in the device inventory and raises the Unknown TACACS+ device alert, for IPv4 and IPv6 alike. Without this rule, a trusted corporate root (or a SubCA under it) would give every holder of a certificate under that root the TLS transport.
  • The check is per address, not per device. An inventoried subnet, or an entry for 0.0.0.0/0 or ::/0, lets every address it covers in over TLS, with any certificate the trusted CAs accept.
  • The device is identified by its source address, as on port 49. The client certificate does not name the device to the policy. A certificate copied to another inventoried device gets the policy of the address it connects from.
  • The shared secret is not used on a TLS connection. A device with no TACACS+ key at any level (device, group or global) logs in over TLS only: classic TACACS+ from it is refused. See Network devices.

Narrow the trusted CAs on top of this when only some of your CAs should issue device certificates.

A TLS connection the daemon refuses during or right after the handshake is a failure row on the TACACS+ tab of the Authentication Log, with action TLS handshake, no username, the reason in plain words in the Reject Reason column, and what OpenSSL reported in Reject Details — for a device certificate that failed verification, why (for example certificate verify failed — certificate has expired (10)). Repeated refusals from one address for the same reason are folded into one row per minute, and these rows are not counted as failed logins. The full list of reasons is on Logging & accounting.

Start from the device’s row on Authentication Log → TACACS+: the reason names the side that refused.

Reason in the logLikely causeFix
TLS: the device does not trust the CA that issued the server certificateThe device lacks the CA that signed Taranac’s server certificateInstall the Infrastructure CA (or your CA) on the device, or deploy a server certificate from a CA the device already trusts.
TLS: the device rejected the server certificateThe address the device dials is not among the certificate’s SANs, or the device does not accept its issuerCheck the card for Not named in the certificate. Add the address to TARANAC_NODE_IPS and run ./taranac up -d (generated certificate), or issue a certificate with the right IP SANs.
TLS: the address is not in the device inventoryNo enabled device with TACACS+ covers the source addressAdd the device (or enable it), with the address it really sends from.
TLS: the device presented no client certificateNo TLS client identity configured on the deviceConfigure the device’s certificate and key.
TLS: the device’s certificate is not issued by a CA in TLS Client TrustIts CA is not trustedCheck TLS Client Trust: an imported CA needs Selected CAs, and a CA marked Not in use is disabled or inactive.
TLS: the device’s certificate is revokedIts serial, or a CA it sent, is on a CRLIssue a new certificate, or re-enroll the device.
TLS: the device’s certificate has expired / is not yet validValidity dates, or the device’s clockRenew the certificate; check the device’s time source.
TLS: the device and the server have no TLS version in commonThe device offers neither TLS 1.2 nor 1.3Update the device’s TLS settings or firmware.
TLS: the device did not speak TLSClassic TACACS+ sent to port 6049Configure TLS on the server entry, or point the device at port 49.
No TLS client connects at allSelected CAs mode with nothing usable selectedAdd a CA, or return to All internal CAs. The card shows a warning in this state.
TLS works on one cluster node, fails after failoverThe other node presents a certificate from its own Infrastructure CAMake the device trust every node’s CA, or deploy a certificate from a common CA on every node.
The handshake succeeds, then the login failsPolicy, not TLSRead the TACACS+ log and the AAA policy tester, as for port 49.