Skip to main content

SSL Certificate Management

This guide covers SSL/TLS certificate management options for Runlayer, comparing cert-manager and AWS Certificate Manager (ACM) to help you choose the right approach for your deployment.

Overview

Runlayer supports multiple certificate management approaches depending on your deployment method and requirements:

cert-manager

Best for: Kubernetes deployments, multi-cloud, self-managedAutomatic Let’s Encrypt certificates with full Kubernetes integration

AWS Certificate Manager

Best for: AWS-native deployments, enterprise environmentsManaged SSL certificates with seamless AWS service integration

Comparison Matrix

cert-manager Configuration

When to Use cert-manager

  • Multi-cloud deployments or non-AWS environments
  • Full control over certificate lifecycle
  • Integration with private CAs or custom issuers
  • Kubernetes-native certificate management

Installation and Setup

1

Install cert-manager

2

Create ClusterIssuer for Let's Encrypt

3

Configure IAM for Route53 (AWS only)

For DNS-01 challenges with Route53:

Runlayer Configuration with cert-manager

Standard deployment with single domain:

Monitoring cert-manager

AWS Certificate Manager (ACM)

When to Use ACM

  • AWS-native deployments with ALB/ELB
  • Minimal operational overhead with managed certificates
  • Enterprise compliance requirements
  • Integration with other AWS services

ACM with Application Load Balancer

1

Request Certificate in ACM

2

Validate Certificate

3

Configure ALB Ingress

ACM with Terraform (ECS Module)

The ECS Terraform module uses wildcard certificate lookups by default. This derives a wildcard domain from your deployment domain (e.g., ecs.staging.runlayer.com*.staging.runlayer.com) and looks up a pre-existing certificate. Why wildcard certificates? Per-domain certificates expose customer/environment names in Certificate Transparency logs (crt.sh). Wildcard certificates provide the same security while keeping deployment details private.
Default behavior - looks up pre-existing wildcard certificate:
Pre-created wildcard certificates for Runlayer environments:
  • *.staging.runlayer.com - staging AWS account
  • *.sandbox.runlayer.com - staging AWS account
  • *.prod.runlayer.com - production AWS account
The create_dns_records variable (default false) controls whether to create the Route53 ALIAS record pointing your domain to the ALB. Set to true if you have a Route53 hosted zone and want Terraform to manage the DNS record. This is separate from certificate management.

Hybrid Approach: ACM + cert-manager

For complex deployments, you can use both:

Certificate Renewal

cert-manager Renewal

ACM Renewal

ACM certificates are automatically renewed by AWS:

Troubleshooting

Certificate stuck in pending:
Debugging DNS-01 challenges:
Certificate validation failing:
ALB not using certificate:

Best Practices

Security

  • Use TLS 1.2+: Configure modern TLS policies
  • Strong Cipher Suites: Use secure cipher configurations
  • HSTS Headers: Enable HTTP Strict Transport Security
  • Certificate Monitoring: Monitor certificate expiration dates

Operations

  • Automate DNS validation: Use infrastructure as code for DNS records
  • Monitor certificate health: Set up alerts for certificate issues
  • Backup certificates: Store certificate secrets securely
  • Test certificate renewal: Verify automatic renewal processes

Cost Optimization

  • ACM for AWS services: Free certificates for AWS load balancers
  • cert-manager for flexibility: Free Let’s Encrypt certificates
  • Wildcard certificates: Reduce certificate management overhead
  • Proper certificate scoping: Use appropriate certificate coverage

Deployment Scenarios

AWS Production

Recommended: ACM with ALB
  • Managed certificates
  • Automatic renewal
  • AWS integration
  • Enterprise support

Multi-cloud

Recommended: cert-manager
  • Platform independence
  • Kubernetes native
  • Flexible CA options
  • Full control

Development

Recommended: cert-manager
  • Easy setup
  • Free certificates
  • Quick iteration
  • Local testing

Enterprise

Recommended: Hybrid approach
  • ACM for production
  • cert-manager for staging
  • Private CA integration
  • Compliance requirements
Choose the approach that best fits your infrastructure, operational requirements, and compliance needs. Both solutions provide robust, automatic certificate management for Runlayer deployments.