Lesson 4 of 6 Centralized Security and Encryption

Managing Certificates and Encrypting Traffic in Transit at Scale

This lesson explains the services and patterns for managing the certificates that TLS everywhere needs across many accounts and Regions.

Learning outcomes

After completing this lesson, you will be able to:

  • Choose between ACM public certificates and AWS Private CA.
  • Explain how TLS is enforced at each hop.
  • Describe how mutual TLS is implemented between internal services.

Certificate services

Two services issue certificates. AWS Certificate Manager (ACM) provides free public certificates, validated by DNS or email, and renews them automatically for Elastic Load Balancing, CloudFront and API Gateway. Certificates are Regional and belong to one account. CloudFront requires its certificate in us-east-1, and imported certificates are not renewed automatically. Since 2025, ACM can also issue exportable public certificates, for a fee, for installation on instances and other servers that ACM does not integrate with.

AWS Private CA creates private root and subordinate certificate authorities for internal services, mutual TLS, device certificates, Kubernetes through cert-manager, and IAM Roles Anywhere. It can be shared across accounts with RAM, and its short-lived certificate mode, with certificates valid for up to seven days, lowers cost and reduces the need for revocation. ACM can issue and renew private certificates from it. The following table summarises the services.

ServiceProvidesNotes
AWS Certificate Manager (ACM)Free public certificates (DNS or email validation) with automatic renewal for ELB, CloudFront and API GatewayRegional and per account; CloudFront needs us-east-1; imported certificates are not auto-renewed
AWS Private CAPrivate root and subordinate CAs for internal services, mutual TLS, devices, Kubernetes (cert-manager) and IAM Roles AnywhereShareable across accounts with RAM; short-lived certificate mode (up to 7 days) cuts cost and revocation needs; ACM can issue and renew its certificates
Scenario questions

Choosing a certificate service

Exam skills 2.2.2

Choose the certificate service for each requirement.

Log in to try this activity Interactive activities are free with an account.

Enforcing TLS

Encryption in transit is enforced at each hop rather than assumed. At the edge, CloudFront viewer protocol policies redirect or reject plain HTTP and set a minimum TLS version, and load balancer listeners use security policies that allow only TLS 1.2 or 1.3 with strong ciphers. Behind them, connections to targets can also use TLS, so traffic is encrypted end to end rather than only to the load balancer.

Data services enforce it with policies: S3 bucket policies deny requests where aws:SecureTransport is false, and database parameters such as rds.force_ssl reject unencrypted connections. Hybrid links need their own encryption, because Direct Connect is not encrypted by default: MACsec or an IPsec VPN over Direct Connect adds it, while a Site-to-Site VPN is encrypted by design.

Worked example

Mutual TLS between internal services

Payment microservices in several accounts must authenticate each other with mutual TLS. The security account runs a subordinate CA in AWS Private CA and shares it with the workload accounts through RAM. Each team then requests certificates through ACM, which renews them automatically:

aws ram create-resource-share --name payments-ca \
  --resource-arns arn:aws:acm-pca:eu-west-1:333333333333:certificate-authority/1a2b3c4d \
  --principals arn:aws:organizations::111111111111:ou/o-a1b2c3d4e5/ou-ab12-payments

# In a workload account
aws acm request-certificate --domain-name refunds.payments.internal \
  --certificate-authority-arn arn:aws:acm-pca:eu-west-1:333333333333:certificate-authority/1a2b3c4d

Public-facing endpoints use ACM public certificates and a modern listener policy, for example ELBSecurityPolicy-TLS13-1-2-2021-06, which allows only TLS 1.2 and 1.3. ALBs can also verify client certificates natively with a trust store, so mutual TLS does not have to be implemented in application code.

Check yourself

How can an S3 bucket reject requests made over plain HTTP?

Show answer

With a bucket policy that denies all actions when aws:SecureTransport is false.

Exam Tips

Remember for the exam

  • For internal mutual TLS between services, use AWS Private CA.
  • A certificate for a CloudFront custom domain must be in ACM in us-east-1.
  • To share a private certificate authority across accounts, use AWS RAM.
  • ACM certificates belong to one Region and one account.
  • Imported certificates must be renewed manually, so monitor their expiry.