Lesson 4 of 5 Encryption in Transit and Certificates

Tightening TLS Security Policies Without Breaking Clients

This lesson explains where each AWS endpoint sets the TLS versions and ciphers it accepts, and how to find the clients that still use old protocols before tightening anything.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify where TLS settings live for each service.
  • Identify the sources that reveal clients using old TLS versions.
  • Describe the certificate lifecycle considerations.

Where TLS settings live

Each service sets TLS in its own place. On ALB and NLB, the listener's security policy sets the allowed protocols and ciphers: for example, ELBSecurityPolicy-TLS13-1-2-2021-06 allows TLS 1.2 and 1.3, and TLS 1.3-only policies also exist. Newer policies add post-quantum hybrid key exchange. On CloudFront, the viewer protocol policy redirects HTTP to HTTPS or requires HTTPS. The viewer security policy sets the minimum TLS version, and the origin protocol policy controls the connection to the origin; certificates must be in ACM in us-east-1.

On API Gateway, the custom domain's security policy sets the TLS version. Disabling the default execute-api endpoint forces all traffic through the custom domain. For S3 and other AWS APIs, resource policies deny requests where aws:SecureTransport is false, and s3:TlsVersion requires a minimum version. For databases, engine parameters such as rds.force_ssl or require_secure_transport require TLS. The following table summarises the settings.

ServiceSetting
ALB and NLBListener security policy (for example ELBSecurityPolicy-TLS13-1-2-2021-06 for TLS 1.2+, or a TLS 1.3-only policy); newer policies add post-quantum hybrid key exchange
CloudFrontViewer protocol policy (redirect to HTTPS or HTTPS only), minimum viewer TLS security policy, origin protocol policy; certificates must be in ACM in us-east-1
API GatewayCustom domain security policy; disable the default execute-api endpoint to force traffic through the custom domain
S3 and other AWS APIsBucket or resource policies denying aws:SecureTransport false; s3:TlsVersion to require a minimum version
DatabasesEngine parameters such as rds.force_ssl or require_secure_transport
Match the pairs

Where each service sets TLS

Exam skills 5.1.1

Match each service with where its TLS settings live.

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

Finding clients that use old TLS

Before raising a minimum version, the clients that would break must be found. The following list describes the sources of that information.

  • CloudTrail records tlsDetails (TLS version and cipher) for AWS API calls, so you can query which callers still use TLS 1.0 or 1.1 on AWS endpoints.
  • ELB access logs include ssl_protocol and ssl_cipher per request.
  • CloudFront logs include the viewer's TLS protocol and cipher.

The following diagram shows the remaining path to a public API once its default execute-api URL is disabled.

Closing the default-URL bypass on a public API. The custom domain's security policy requires TLS 1.2 or later, but the default execute-api URL also answered, so clients could avoid the policy. Disabling the default endpoint leaves the custom domain as the only path; logs first show who still negotiates older versions.
The scenario is illustrative.
Match the pairs

Finding old TLS clients

Exam skills 5.1.1 · 1.2.4

Match each log with the TLS information it records.

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

Certificate lifecycle

Certificates must be renewed and managed throughout their lifecycle. The following list describes the relevant considerations.

  • ACM public certificates with DNS validation renew automatically as long as the validation CNAME record remains.
  • Imported certificates are not renewed; monitor ACM expiry events in EventBridge or the Config rule acm-certificate-expiration-check.
  • Private keys of ACM certificates cannot be exported from integrated services; use ACM for Nitro Enclaves when an EC2 web server needs them.
True or false

Certificates over time

Exam skills 5.3.5

Check how certificates are renewed and protected.

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

Compliance requires all client connections to the company's public API to use TLS 1.2 or later. The API is served by API Gateway through a custom domain. Penetration testers found that the API also answers on its default execute-api URL.

Set the custom domain's security policy to TLS 1.2 and disable the API's default endpoint, so clients cannot bypass the custom domain's policy through the default URL. Before the change, CloudTrail and access logs confirm which clients still negotiate older versions.

Check yourself

In which Region must a CloudFront certificate be?

Show answer

US East (N. Virginia), us-east-1.

Exam Tips

Remember for the exam

  • ELB listener security policies set accepted TLS versions and ciphers; choose a TLS 1.2+ or TLS 1.3 policy.
  • CloudFront certificates must be in us-east-1; set viewer and origin protocol policies.
  • Disable API Gateway's default endpoint so clients cannot bypass custom domain TLS settings.
  • Find old TLS clients with CloudTrail tlsDetails and ELB access log fields before tightening.
  • Imported ACM certificates do not renew; alert on expiry.