Skip to main content
TLS secrets store SSL/TLS certificates and private keys for secure communication. Use them for custom domains, mTLS authentication, or any scenario requiring certificate-based security.

Use Cases

  • Custom Domains: Provide TLS certificates for custom domain names
  • mTLS Authentication: Mutual TLS for service-to-service authentication
  • Internal Services: Secure communication between workloads
  • Legacy Integrations: Connect to systems requiring client certificates

Configuration Options

FieldDescriptionRequired
keyPrivate key in PEM formatYes
certCertificate in PEM formatYes
chainCertificate chain/intermediate certs in PEM formatNo
The private key must match the certificate’s public key. For production, use certificates from a trusted Certificate Authority (CA).

Create a TLS Secret

1

Navigate to Secrets

In the Console, navigate to Secrets and click New, or use the Create dropdown in the top-right corner and select Secret.
2

Enter basic information

Enter a Name and optional Description.
3

Select secret type

Select TLS as the secret type.
4

Configure certificate data

Click Data in the left pane. For TLS Key, drag and drop your private key file or click to import. For TLS Cert, drag and drop your certificate file or click to import. For TLS Chain (optional), drag and drop your certificate chain file or click to import.
5

Create the secret

Click Create.

Certificate Formats

TLS secrets expect PEM-encoded files: Private Key:
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA...
-----END RSA PRIVATE KEY-----
Certificate:
-----BEGIN CERTIFICATE-----
MIIDXTCCAkWgAwIBAgIJ...
-----END CERTIFICATE-----

Best Practices

For production, use certificates from trusted Certificate Authorities like Let’s Encrypt, DigiCert, or your organization’s internal CA.
Track certificate expiration dates and rotate before they expire. Consider automating renewal with tools like cert-manager or ACME clients.
Never share private keys via email or chat. Use secure transfer methods and limit access to key files.

Next Steps