Protect every encrypted connection—and plan renewal
Map every connection that needs TLS, place each certificate where its service expects it, and separate certificate renewal, KMS rotation, and data re-encryption.
LESSON GOALS
By the end, you can
- Trace TLS across every connection and place CloudFront and Regional load-balancer certificates correctly.
- Choose certificate renewal, KMS rotation, or re-encryption from the lifecycle problem being solved.
01
Map every encrypted connection
A customer request does not travel through one long encrypted tunnel. It crosses separate connections: client to CloudFront, CloudFront to the load balancer, load balancer to the application, and application to the database. TLS on one connection says nothing about the next.
Draw each connection as its own row. Record both endpoints, the hostname the client checks, where TLS ends, and whether another TLS connection begins. If policy says every hop is encrypted, every row needs a passing answer.
Now add the lifecycle owner. For each certificate, record who requests it, proves control of the domain, renews it, deploys it, monitors it, and can roll back a bad replacement. “ACM manages it” is incomplete when DNS validation records or the service attachment disappear.
Keep transport encryption separate from encryption at rest. TLS protects bytes moving across one connection. A KMS key protects supported stored data through a different authorization and lifecycle path.
Before choosing a service, test one failure: expire a test certificate, break validation, or remove the next-hop TLS configuration. The failed connection should be named precisely rather than reported as a vague application outage.
02
Place and renew each certificate
AWS Certificate Manager can issue and renew public certificates for supported AWS integrations. The certificate still has to exist in the Region required by the service that presents it.
A CloudFront viewer certificate from ACM must be in us-east-1. A Regional Application Load Balancer uses an ACM certificate in the load balancer's Region. These are two different TLS connections and may need two certificates.
The origin connection has its own rules. If CloudFront connects to an HTTPS origin, the origin presents a certificate whose name and trust chain must satisfy that connection. Encrypting the viewer connection does not automatically encrypt CloudFront to the origin.
Managed renewal reduces routine work only while its prerequisites remain valid. Preserve domain validation, keep the certificate attached to a supported service, and monitor renewal state before expiry. Imported certificates remain a customer renewal job.
During replacement, keep enough overlap for deployment and rollback. Test the intended hostname, certificate chain, protocol, and representative clients. A certificate can be valid yet still fail because it is in the wrong Region, attached to the wrong listener, or untrusted by an older private client.
03
Choose rotation or re-encryption
Certificate renewal, KMS key rotation, and re-encryption solve different lifecycle problems. Start by naming what must change: a TLS credential, the backing material of a logical KMS key, or the trust path protecting existing ciphertext.
Renewal gives future TLS handshakes a new certificate. It does not rewrite stored data. Eligible KMS rotation changes backing key material while keeping the same logical KMS key, and KMS retains the material needed to decrypt older ciphertext.
Routine KMS rotation therefore does not re-encrypt existing records. It also does not repair data encrypted with a compromised data key. When compromise changes the trust boundary, create a new trusted key path and move producers and consumers deliberately.
Re-encryption reads data through the old authorized path and writes it through the new one. Keep the old key available until migration coverage and restore tests prove that no required ciphertext still depends on it. Deleting first can make durable data permanently unreadable.
Test the two lifecycles separately. An HTTPS test should prove certificate placement, hostname, trust, and renewal. A data test should decrypt an old record, write a new record, and restore through the intended KMS policy after rotation or migration.
Use the least disruptive operation that solves the stated problem: renew an expiring certificate, rotate eligible key material for routine policy, and re-encrypt only when the data must move to a different trust path.
DECISION TABLE
Compare the architecture constraints
| requirement | choose | because | reject |
|---|---|---|---|
| Public cert on Regional ALB | ACM cert in ALB Region | Correct placement/managed renewal. | Cert only in another Region. |
| CloudFront viewer TLS | ACM cert in us-east-1 | CloudFront requirement. | Origin Region viewer cert. |
| Routine KMS rotation | Rotate same logical key | Old material decrypts old data. | Delete old key/re-encryption assumption. |
GUIDED WORKED SCENARIO
Reason from the stated constraints
This is a guided example, not a question to memorise. The knowledge check uses new situations to test the same reasoning.
Global clients reach CloudFront, Regional ALB, app, and RDS. Every hop must be encrypted. Public certs auto-renew; KMS keys rotate by policy; old records remain readable.
Requirements
- Every hop encrypted.
- Correct certificate Regions.
- No renewal outage.
- Old ciphertext decrypts.
- Avoid imported cert operations unless required.
Reasoning path
- Map every hop/terminator.
- Place CloudFront cert in us-east-1 and ALB cert in workload Region.
- Configure origin/database TLS.
- Preserve validation and alarms.
- Rotate key material without deleting needed material.
Why it wins
- All transit boundaries protected.
- Region/renewal dependencies explicit.
- Rotation preserves old decryption.
Why the alternatives lose
CloudFront viewer placement differs.
Becomes correct when: No CloudFront viewer requirement.Old data may be unreadable.
Becomes correct when: All dependencies verified re-encrypted.At-rest is not transit encryption.
Becomes correct when: Transport protected elsewhere.ARCHITECTURE VISUAL · TEXT MODE
Inspect the model
Hop table with client, terminator, protocol/certificate Region, at-rest key, lifecycle owner, alarm, and response.
KNOWLEDGE CHECK
Answer one question at a time
Pass every question to complete this lesson. Each answer includes reasoning before you continue.
KEY TERMS
Glossary
- TLS
- A protocol that protects one network connection in transit.
- Certificate
- A signed credential that binds a public key to a name or identity.
- TLS termination
- The endpoint where one TLS connection is decrypted and ends.
- AWS Certificate Manager (ACM)
- An AWS service for provisioning and managing certificates for supported integrations.
- Domain validation
- Proof that a certificate requester controls the named domain.
- Renewal
- Replacing a certificate used by future TLS handshakes before it expires.
- Re-encryption
- Reading data through one key path and writing it through another.
- Trust store
- The certificate authorities a client accepts when validating a peer.
PRIMARY SOURCES
Verify the claims
- primaryWhat is AWS Certificate Manager?aws-acm-overview · retrieved 2026-07-30
- primarySecurity Pillar – AWS Well-Architected Frameworkaws-wa-security-pillar · retrieved 2026-07-29
- primaryWhat is Amazon CloudFront?aws-net-cloudfront · retrieved 2026-07-29
- primaryWhat is Elastic Load Balancing?aws-compute-elb · retrieved 2026-07-29
- primaryRotate AWS KMS keysaws-kms-key-rotation · retrieved 2026-07-30
- primaryCloudfront Certificate Requirementsaws-cloudfront-certificate-requirements · retrieved 2026-07-30
- primaryAWS Certificate Manager endpoints and Regionsaws-acm-endpoints-regions · retrieved 2026-07-30