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
The private key must match the certificate’s public key. For production, use certificates from a trusted Certificate Authority (CA).
Create a TLS Secret
- Console UI
- CLI
- Terraform
- Pulumi
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:Best Practices
Use certificates from trusted CAs
Use certificates from trusted CAs
For production, use certificates from trusted Certificate Authorities like Let’s Encrypt, DigiCert, or your organization’s internal CA.
Set up certificate rotation
Set up certificate rotation
Track certificate expiration dates and rotate before they expire. Consider automating renewal with tools like cert-manager or ACME clients.
Protect private keys
Protect private keys
Never share private keys via email or chat. Use secure transfer methods and limit access to key files.
Next Steps
Custom Domains
Configure custom domains with TLS certificates
Using Secrets in Workloads
Learn how to grant access and inject secrets