Configure a dedicated client certificate for outbound Splunk platform connections
Starting in Splunk platform version 10.6, you can configure a dedicated client certificate that splunkd uses when it establishes outbound TLS connections, separate from the server certificate that splunkd presents for inbound connections.
The Splunk daemon (splunkd) uses the server certificate that the serverCert setting in the server.conf configuration file references as its client credential for all outbound TLS connections. This includes connections for federated search, distributed search, indexer cluster replication, search head cluster (SHC) replication, deployment client, and license peer communications.
If the receiving Splunk platform instance enforces mutual TLS (mTLS) and requires that the client certificate contain the TLS Web Client Authentication (clientAuth) Extended Key Usage (EKU) extension, the server certificate might not satisfy that requirement. Third-party certificate authorities are removing the clientAuth EKU extension from public TLS server certificates, with full enforcement by DigiCert expected on March 1, 2027. After that date, any Splunk platform instance that uses a public CA certificate without the clientAuth EKU for outbound mTLS connections fails to authenticate. See Third-party Certificate Authorities cease issuing certificates with ServerAuth and ClientAuth EKU extensions.
You can configure a dedicated client certificate by giving the clientCert setting in the [sslConfig] stanza of the server.conf file a value. The dedicated certificate applies only to outbound connections. The serverCert certificate continues to serve inbound connections without change.
clientCert settings instead of this setting. S2S forwarding uses the same setting name in the outputs.conf file and KV Store uses the setting under the [kvstoreSslClientConfig] stanza. Both connection types ignore this setting. Authentication that uses Security Assertion Markup Language (SAML) uses the same setting name in the authentication.conf file and falls back to this setting if no value exists there. Other outbound connections over TLS always use this setting.
Prerequisites to configuring the dedicated client certificate
Confirm that you have the following items in place before you try to configure dedicated client certificates:
- A combined Privacy-Enhanced Mail (PEM) file that contains both the client certificate and its private key. The layout is the same as for the
serverCertsetting. - A client certificate that includes the
clientAuthEKU extension. If the certificate only has theserverAuthEKU extension, splunkd logs a startup warning and the certificate does not satisfy mTLS requirements on the receiving Splunk platform instance. - Administrative access to the server.conf configuration file on each Splunk platform instance you want to configure.
Configure the dedicated client certificate
- On each Splunk platform instance you want to configure, use your operating system file management tools to copy the PEM file that contains your client certificate and private key to a directory that the Splunk platform instance can access. For example, copy it to $SPLUNK_HOME/etc/auth/.
- Use a text editor to open the $SPLUNK_HOME/etc/system/local/server.conf file for editing.
- In the
[sslConfig]stanza, add the clientCert setting with the full path to the PEM file:CODE[sslConfig] clientCert = $SPLUNK_HOME/etc/auth/myClientCert.pem - (Optional) If the private key in the PEM file has a passphrase, add the clientPrivKeyPassword setting:
If you omit this setting, splunkd falls back to the sslPassword value to decrypt the private key.CODE
clientPrivKeyPassword = <passphrase> - Save the server.conf file and close it.
- Restart splunkd:
CODE
$SPLUNK_HOME/bin/splunk restart splunkd
Configure trust on the remote system
If you have configured a "true" value for the requireClientCert setting on your Splunk Enterprise instance management port, and a Splunk Cloud Platform instance connects to it, for example for federated search, you must add the DigiCert Assured ID G2 Root CA certificate to the file that the sslRootCAPath setting in the [sslConfig] stanza of the server.conf file references on the on-premises instance. DigiCert is the CA that issues outbound client certificates for Splunk Cloud Platform.
After you add the CA certificate, restart splunkd on the on-premises instance for the change to take effect.
EKU startup warning
When splunkd starts with a configured clientCert, it checks the certificate for the clientAuth EKU extension. If the certificate does not have this extension, splunkd logs a startup warning on the SSLOptions channel:
server.conf/[sslConfig]/clientCert: certificate does not have the 'clientAuth' extended key usage; it will be rejected for client authentication by CAs enforcing EKU separation (e.g. after DigiCert's 2027-03-01 policy enforcement). Use a certificate with the clientAuth EKU.
The warning does not prevent splunkd from starting. Splunkd starts successfully and uses the certificate. However, when DigiCert enforces full removal of the clientAuth EKU on March 1, 2027, remote systems that enforce strict EKU checking reject this certificate. Update the certificate before that date. See Third-party Certificate Authorities cease issuing certificates with ServerAuth and ClientAuth EKU extensions.
How Splunk Enterprise protects the clientPrivKeyPassword passphrase
Splunk Enterprise stores the clientPrivKeyPassword value encrypted at rest. On the first load after you set a plaintext value, splunkd encrypts it and replaces the plaintext in the server.conf file. The encrypted value uses the $7$ or $8$ cipher format depending on the version of Splunk Enterprise that you use.
Splunk Enterprise redacts the passphrase in the following contexts:
- Output from the
btool listSplunk CLI command - Splunk diag bundles
- Audit log entries