On This Page

Home / Stream/ Secure Your Deployment/ Configure TLS/Add TLS Certificates and Keys

Add TLS Certificates and Keys ​

You can add and manage TLS certificates and keys in Cribl Stream to be reused across multiple purposes, including:

Certificate Requirements ​

Cribl Stream stores certificates and keys in privacy-enhanced mail (PEM) format (.pem). You provide PEM files or a Public-Key Cryptography Standards #12 (PKCS#12) bundle (.pfx or .p12). When you save the bundle, Cribl converts it to PEM and discards the original file. For details, see PKCS#12 Bundles.

You can use:

  • Certificates from a public certificate authority (recommended for production; trusted by most clients by default).
  • Certificates issued by your organization internal PKI (requires adding the root and intermediate CA certificates to client trust stores).
  • Self-signed certificates (for lab/test environments only; requires manual trust configuration).

Generate a Self-Signed Certificate (Optional) ​

For non-production or lab environments, you can generate a self-signed certificate and private key using OpenSSL:

openssl req -nodes -new -x509 -newkey rsa:2048 \
  -keyout myKey.pem \
  -out myCert.pem \
  -days 420

This command generates:

  • myCert.pem: a self-signed certificate (valid for 420 days).
  • myKey.pem: an unencrypted 2048-bit RSA private key.

PKCS#12 Bundles ​

When you use a PKCS#12 bundle to Add a Certificate, Cribl stores these parts of the bundle as PEM:

  • Leaf and intermediate certificates (stored together as the certificate).
  • Root certificate (stored as the CA certificate). TLS settings that use the CA treat the root as a trust anchor.
    • When you add a new certificate from a bundle with no root certificate, Cribl leaves the CA empty. To store a CA that the bundle does not contain, add the certificate as PEM instead.
    • When you replace a certificate that already has a CA, the new bundle must include a verified root. Otherwise, Cribl rejects the replacement and keeps the existing certificate. To remove the CA, edit the certificate to use PEM format and clear the CA certificate field.
    • Cribl rejects bundles that contain more than one root or a root that is not on the leaf certificate’s verified chain.
  • Private key. If the bundle has a password, Cribl encrypts the private key with that password and saves the password as the private key’s passphrase. If the bundle does not have a password, Cribl stores the private key unencrypted, with no passphrase.
    • The private key in the PKCS#12 bundle must be an RSA key.
    • The bundle must contain the private key and the certificate it belongs to. Cribl rejects bundles with no private key, no certificate, or a private key that does not match any of the certificates.

Cribl rejects bundles whose message authentication code (MAC) and encryption derivations together exceed 500,000 iterations. For example, openssl pkcs12 -export -iter 170000 sets the MAC, the certificate encryption, and the private key encryption to 170,000 iterations each (510,000 total), so Cribl rejects the bundle.

FIPS mode does not support PKCS#12 bundles. Use PEM instead.

Add a Certificate ​

Once you have a certificate generated or prepared, you can add it on the on-prem Leader or Worker Group.

On the Leader ​

Add a certificate on an on-prem Leader Node to secure communications from Outposts or Worker Nodes to the Leader.

You do not need to add certificates to Cribl.Cloud Leaders. Leaders in Cribl.Cloud are secured with TLS certificates managed and configured by Cribl.

  1. In the sidebar, navigate to Settings > Global > Security > Certificates.

  2. Select Add Certificate.

  3. Enter a descriptive Name (for example, leader-ui-tls or worker-tls).

  4. (Optional) Add a Description to help identify the certificate’s purpose.

  5. Select an Upload format: PEM or PKCS#12 (.pfx/.p12).

    FIPS mode does not support PKCS#12 (.pfx/.p12). Select PEM instead.

    • If you select PEM upload format:

      1. In the Certificate field, drag and drop the .pem certificate file, select the upload button to browse for the file, or paste the contents of the file. The certificate should have the following form:

        -----BEGIN CERTIFICATE-----
        CERTIFICATE CONTENT
        -----END CERTIFICATE-----
      2. In the Private key field, upload or paste the corresponding private key in PEM format.

        An unencrypted private key should have the following form:

        -----BEGIN RSA PRIVATE KEY-----
        HIDDEN PRIVATE KEY
        -----END RSA PRIVATE KEY-----

        An encrypted private key uses a different heading and footer:

        -----BEGIN ENCRYPTED PRIVATE KEY-----
        HIDDEN ENCRYPTED PRIVATE KEY
        -----END ENCRYPTED PRIVATE KEY-----
      3. (Optional) If you’re using a certificate signed by an external certificate authority (for example, a downloaded Splunk Cloud certificate), you have mTLS enabled, and need to validate client certificates, upload or paste the CA certificate chain into the CA certificate field. For details, see Obtain the Certificate Chain (TLS/SSL).

      4. (Optional) If your private key is encrypted, enter the Passphrase.

    • If you select PKCS#12 (.pfx/.p12) upload format:

      1. In the PKCS#12 bundle field, drag and drop the .pfx or .p12 file or select the upload button to browse for the file. The .pfx or .p12 file must not be larger than 1 MiB.
      2. (Optional) If the PKCS#12 bundle has a password, enter it in Bundle password. The bundle password must contain only ASCII characters.
  6. Select Save.

On a Worker Group ​

You can use certificates added at Worker Group level to secure connection to external services through Sources.

To add certificates at the Worker Group level:

  1. In the sidebar, select Worker Groups, then select the Worker Group you want to configure.

  2. Select Worker Group Settings > Security > Certificates.

  3. Select Add Certificate.

  4. Enter a descriptive Name (for example, leader-ui-tls or worker-tls).

  5. (Optional) Add a Description to help identify the certificate’s purpose.

  6. Select an Upload format: PEM or PKCS#12 (.pfx/.p12).

    FIPS mode does not support PKCS#12 (.pfx/.p12). Select PEM instead.

    • If you select PEM upload format:

      1. In the Certificate field, drag and drop the .pem certificate file, select the upload button to browse for the file, or paste the contents of the file. The certificate should have the following form:

        -----BEGIN CERTIFICATE-----
        CERTIFICATE CONTENT
        -----END CERTIFICATE-----
      2. In the Private key field, upload or paste the corresponding private key in PEM format.

        An unencrypted private key should have the following form:

        -----BEGIN RSA PRIVATE KEY-----
        HIDDEN PRIVATE KEY
        -----END RSA PRIVATE KEY-----

        An encrypted private key uses a different heading and footer:

        -----BEGIN ENCRYPTED PRIVATE KEY-----
        HIDDEN ENCRYPTED PRIVATE KEY
        -----END ENCRYPTED PRIVATE KEY-----
      3. (Optional) If you’re using a certificate signed by an external certificate authority (for example, a downloaded Splunk Cloud certificate), upload or paste the CA certificate chain into the CA certificate field. For details, see Obtain the Certificate Chain (TLS/SSL).

      4. (Optional) If your private key is encrypted, enter the Passphrase.

    • If you select PKCS#12 (.pfx/.p12) upload format:

      1. In the PKCS#12 bundle field, drag and drop the .pfx or .p12 file or select the upload button to browse for the file. The .pfx or .p12 file must not be larger than 1 MiB.
      2. (Optional) If the PKCS#12 bundle has a password, enter it in Bundle password. The bundle password must contain only ASCII characters.
  7. Select Save.

  8. Commit & Deploy the new configuration for the Worker Group.

Manage Existing Certificates ​

To view and manage certificates you’ve already added:

  1. Navigate to Settings > Global > Security > Certificates (Leader) or Worker Group Settings > Security > Certificates (Worker Group level).
  2. Select a certificate name to view or edit its details.
  3. To delete a certificate, select the delete icon next to the certificate entry.

Before deleting a certificate, verify it’s not in use by any TLS configuration (Leader UI/API, Leader-Worker Node communications, Sources, or Destinations).

Using Certificates ​

After adding a certificate, you can reference it by name in various TLS configurations:

PurposeWhere to Configure
Leader UI/APISettings > Global > General Settings > API Server Settings > TLS > Certificate
Leader-Worker Node CommunicationsSettings > Global > System > Distributed Settings > TLS Settings > Certificate
Worker Node TLSWorker Node Settings > System > Distributed Settings > TLS Settings > Certificate
Sources/DestinationsIndividual Source or Destination TLS settings

Maintaining TLS Certificates ​

Certificate revocation can lead to unexpected service interruptions. To mitigate risks:

  • Regularly review and renew certificates.
  • Implement robust monitoring and alerting systems to detect potential issues.
  • Ensure secure storage of certificates and private keys.
  • In case of emergency, have a well-defined recovery plan to restore service quickly.