Secure Tanium Console, API, and Module Server access on Tanium Appliances
Overview of certificates and keys
Tanium user and module operations require connections to the Tanium Servers, Module Server, and Tanium module services. The Tanium Core Platform uses Secure Sockets Layer (SSL)/Transport Layer Security (TLS) certificates and keys to secure connections to the Tanium Server and Module Server (illustrated in Figure 2). For example, when you use Tanium™ Patch to deploy patches to endpoints, the Tanium Core Platform establishes connections in the following order:
-
User system (browser or CLI) to the Tanium Server (Tanium Console or API)
-
Tanium Server to Tanium Module Server
-
Module Server to Patch service
-
Patch service to Tanium Server
The Tanium Server and Module Server installers generate self-signed certificates. You can replace the self-signed certificates on Tanium Servers with certificates issued by a commercial certificate authority (CA) or your enterprise CA.
To troubleshoot Console and API access issues, see Authentication log.
For more information about the Tanium™ Protocol that secures communication among the Tanium Servers, Zone Server, Zone Server Hub, and Tanium Clients, see Secure Tanium Server, Zone Server, and Tanium Client access on Tanium Appliances. To manage the keys that the Tanium Protocol uses, see Securing Tanium connections and operations through digital keys.
Tanium Console and API
Users access Tanium Console or the Tanium API on the Tanium Server to perform Tanium operations such as issuing questions or deploying actions. The Console and API communicate over Hypertext Transfer Protocol Secure (HTTPS), which uses SSL/TLS certificates and keys to secure client-server connections. When a user accesses Tanium Console or the Tanium API, the user system is the client and the Tanium Server is the server. To secure the connection, the Tanium Server presents its SOAPServer.crt certificate to prove its identity to the Client and uses its SOAPServer.key private key to complete the TLS handshake. For Console or API access, Clients do not have to prove their identity to secure the connection. Figure 2 illustrates these processes.
When you install the Tanium Server on a Tanium Appliance, it generates a self-signed SOAPServer.crt certificate, and users see a certificate validation error when they access Tanium Console or the Tanium API. The error occurs because the CA certificates on the user system cannot validate the self-signed certificate. The following figure shows an example of such an error when users try to connect from a browser to Tanium Console.
Even though browsers provide the option to access Tanium Console despite the error, avoiding that option is a security best practice. Therefore, Tanium highly recommends that you replace the self-signed SOAPServer.crt certificate with a CA-issued certificate. If the Tanium Server is currently using a self-signed certificate, you can replace it at any time.
Signed and encrypted SAML authentication on the Tanium Server
Some identity providers require a digital signature on Security Assertion Markup Language (SAML) requests from a service provider such as the Tanium Server. If you are using such an identity provider for Tanium Console authentication, you must provide a request-signing certificate (SAMLEncryption.crt) and private key (SAMLEncryption.key) to enable the identity provider to authenticate requests. The Server uses the key to sign the requests and the identity provider uses the certificate to validate the signature.
To determine the requirements of the SAML certificate and best practices for generating the certificate and key, see your identity provider documentation.
For more information about using a SAML identity provider with Tanium Console, see Enabling SSO through SAML.
Module Server communication
When users use Tanium Console or the Tanium API to work with Tanium modules, the Tanium Server communicates with the Tanium Module Server, the Module Server accesses the Tanium module services that it hosts (such as Patch), and the module services communicate back with the Tanium Server (see Figure 2).
The Tanium Server and Module Server communicate over HTTPS, and both Servers must prove their identities through certificates. The Tanium Server presents SOAPServer.crt to prove its identity, while the Module Server presents ssl.crt. The Servers use the associated private keys (SOAPServer.key and ssl.key) to complete the TLS handshake that secures the connection. To verify the Tanium Server identity, the Module Server checks that its trusted.crt file contains the SOAPServer.crt that the Tanium Server presented. In an active-active deployment, trusted.crt must contain the SOAPServer.crt of both Tanium Servers. Tanium Servers also verify the Module Server identity by checking that their trusted‑module‑servers.crt file contains the ssl.crt that the Module Server presented. The Module Server registration process generates trusted.crt on the Module Server and trusted‑module‑servers.crt on the Tanium Server. The Module Server installation process generates ssl.crt.
The Module Server opens a single HTTPS listener to route requests from the Tanium Server to Tanium module services, which listen only on localhost. TLS termination occurs on the Module Server, which forwards the requests locally over non-TLS connections from the HTTPS listener to the appropriate module service.
Module services connect to the Tanium Server over TLS and verify that the certificate that the Tanium Server presented during the TLS handshake is included in the trusted.crt file on the Module Server. Because module services use the same API as Tanium Console users, Client certificate validation is not enforced.
If you replace the SOAPServer.crt certificate on the Tanium Server, you must re-register the Module Server with the Tanium Server to regenerate the trusted.crt and trusted‑module‑servers.crt files.
The following table summarizes the certificates and keys that the Tanium Core Platform uses for connections to the Module Server:
|
Location |
File Name |
Purpose |
|---|---|---|
|
Module Server |
ssl.crt ssl.key |
HTTPS certificate and private key that the Module Server presents to secure incoming connections from the Tanium Server or outgoing connections to Tanium services. |
|
trusted.crt |
Contains the SOAPServer.crt of the Tanium Servers with which the Module Server has registered. The Module Server uses trusted.crt to validate Tanium Server certificates. |
|
|
Tanium Server |
SOAPServer.crt SOAPServer.key |
HTTPS certificate and private key that the Tanium Server presents to secure outgoing connections to the Module Server or incoming connections from the systems of Tanium Console users or Tanium API users. |
|
trusted-module-servers.crt |
Contains the ssl.crt of the Module Server that has registered with the Tanium Server. The Tanium Server uses trusted‑module‑servers.crt to validate the Module Server certificate. |
SSL/TLS connection processes and setup tasks
The following figure illustrates the components, processes, and setup tasks involved in securing connections to the Tanium Server (Tanium Console or API) and Module Server.
The following processes correspond to the numbers in Figure 2.
|
|
Tanium Console/API access When a user system connects to Tanium Console or the Tanium API, the Tanium Server presents its SOAPServer.crt certificate to prove its identity to the user system. In Figure 2, the Server uses a CA-issued version of SOAPServer.crt ( |
|
|
Replace self-signed certificate with CA-issued certificate Generate a certificate signing request (CSR) and associated private key SOAPServer.key for the Tanium Server. You submit the CSR to your CA, which uses a CA certificate and associated private key to digitally sign the requested certificate (SOAPServer.crt). The CA signing certificate must also be present on the systems from which users access Tanium Console or the Tanium API ( |
|
|
Module Server registration When installing the Module Server role in an Appliance Array, TanOS automatically establishes trust. For subsequent communication between the Servers, including during version upgrades, trust is already established, and the Servers automatically check trusted‑module‑servers.crt and trusted.crt during their mutual identity verification ( For information about installing the Module Server role in an Appliance Array, see Installing and managing an Appliance Array. |
|
|
Mutual identity verification To establish a secure TLS connection, the Tanium Server and Module Server prove their identities to each other. During the TLS handshake, the Tanium Server presents its SOAPServer.crt certificate to the Module Server, which verifies that its trusted.crt file contains SOAPServer.crt. Also during the handshake, the Module Server presents its ssl.crt certificate to the Tanium Server, which verifies that its trusted‑module‑servers.crt file contains ssl.crt. |
|
|
Module Server to Tanium module services The Module Server opens a single HTTPS listener to route requests from the Tanium Server to Tanium module services, which listen only on localhost. The Module Server forwards the requests locally over non-TLS connections from the HTTPS listener to the appropriate module service. |
|
|
Module services to the Tanium Server Module services connect to the Tanium Server over TLS and verify that the certificate that the Tanium Server presented during the TLS handshake is included in the trusted.crt file on the Module Server. Because module services use the same API as Tanium Console users, Client certificate validation is not enforced for this connection (in contrast with the connection described in |
CA-issued Tanium Server SOAP certificates
If your organization prefers to use CA-issued certificates to secure connections to systems, you can replace the self-signed certificates that the Tanium Server (SOAPServer.crt) generated during installation. In an active-active deployment, you can use the same CA-issued SOAPServer.crt (and associated private key) for both Tanium Servers as long as the Subject Alternative Name in the certificate specifies both Server names. Alternatively, you can use a distinct CA-issued certificate for each Tanium Server.
Obtaining a CA-issued certificate involves submitting a CSR to the CA and generating an associated private key. Use Tanium Console to create a CSR and replace the SOAPServer.crt certificate for the Tanium Server. For more information, see Securing Console and API access through certificates.
The CA uses a CA certificate and its associated private key to digitally sign the certificate that you requested. If a CA-issued certificate replaces SOAPServer.crt on the Tanium Server, then the CA signing certificate must also be present on the systems from which users access Tanium Console or the Tanium API. For Console users, the CA signing certificate must be in the trusted certificates store of their browsers. For API users, the CA signing certificate must be in the location specified in API calls, as shown in the ‑‑cacert <file path> option in the following example:
$ curl -s --cacert <file path> -X POST --data-binary @<sign in>.json https://localhost/api/v2/session/login
Certificate requirements
Work with your CA to obtain a certificate with the following specifications for the Tanium Server SOAP certificate:
-
X.509 certificate with TLS Web Server Authentication extended key usage
-
Separate certificate and private key files.
Important: You must remove the passphrase from the key file. -
PEM format (Base64 encoded)
-
Certificate signed with a SHA-256 hashing algorithm
-
ECC key, or an RSA key with a length of at least 2048 bits
Tip: Secure certificates for server and client systems are required. To check key sizes, use OpenSSL from a CLI. If your Tanium license includes Tanium Certificate Manager, see View short keys for the steps to check the key sizes in your environment. -
Common Name (CN) that specifies the fully qualified domain name (FQDN) or IP address of the Tanium Server.
-
Subject Alternative Name that also specifies the FQDN or IP address of the Server, as well as that of the secondary Tanium Server in an active-active deployment where both Servers use the same certificate. Web browsers typically require the Subject Alternative Name to be present, regardless of whether the certificate applies to multiple Servers.
-
If the certificate is part of a chain that includes an intermediate certificate, the certificate file must include the entire chain. If you receive the certificates as individual files, build a single file for the chain:
-
Use a text editor to create a new text file.
-
Paste the entire body of each certificate into the text file in the following order:
-
Server certificate (SSL.crt or SOAPServer.crt)
-
Intermediate certificate
-
CA certificate
Note: Be sure to include the beginning tag (-----BEGIN CERTIFICATE----) and ending tag (-----END CERTIFICATE----) of each certificate. -
-
Save the text file with the file name of the original server certificate (SSL.crt or SOAPServer.crt).
-
Install a custom certificate
You can replace the self-signed certificates generated by the Tanium Server and Tanium Module Server installers with an SSL certificate issued by a commercial or enterprise certificate authority (CA). You can also add a SAML certificate to a Tanium Server to enable digital signing of authentication requests from the Tanium Server and encryption of responses from a SAML identity provider.
Install the SOAP or SAML certificate file on a Tanium Server or the SSL certificate file on a Module Server
Install the new, CA-issued certificate and associated private key on the Tanium Server or Module Server. When installing a certificate on the Tanium Server in an active-active deployment, perform these steps on each Tanium Server. When replacing the Module Server certificate, perform these steps on both the active Module Server and standby Module Server if implemented. Because the steps include stopping and restarting the Servers, perform this task during a maintenance window.
Manually register the remote Module Server with each Tanium Server
After you replace the certificate and private key on the Module Server, you must manually register the primary Module Server with the Tanium Server. This process includes configuring the Module Server on the Tanium Server and then enabling the Module Server. In an active-active deployment, you must register the Module Server with each Tanium Server. Because the steps include stopping and restarting services, perform this task during a maintenance window.
-
Re-register only the primary Module Server.
-
Do not use these steps when replacing the certificate on a Tanium Server. Allow the Module Server to automatically re-register while following the prompts.
Configure the Module Server on the Tanium Server
Enable the remote Module Server
Restart Tanium Server and Module Server services
Restart all Tanium services on both the Tanium Server and Module Server Appliances. For more information, see Start, stop, and restart Tanium services.
(Optional) Enable HTTP Strict Transport Security for Tanium Console access
If you have installed a valid CA-issued certificate, you can optionally enable HTTP Strict Transport Security (HSTS) on the Tanium Server. To do so, you add the Strict-Transport-Security HTTP header, which notifies browsers to always use HTTPS to connect to Tanium Console after a user accesses the Console using HTTPS the first time. In an active-active deployment, you must perform this procedure on both Tanium Servers.