qsafe.sh
Scan
Theme

Fix guides

How to enable post-quantum TLS on AWS CloudFront

Checked · Official docs

Every viewer security policy includes ML-KEM hybrid key exchange since September 2025.

AWS CloudFront terminates TLS for your visitors, so the key exchange they get is decided by AWS CloudFront, not by your origin server. Change it here first; your origin only matters for the hop from AWS CloudFront back to it. The hybrid falls back to classical X25519 for clients that don't support it, so turning it on doesn't break older browsers.

Turn on post-quantum key exchange

CloudFront offers post-quantum key exchange on all security policies. If it's missing, the domain may be served by something else in front of CloudFront, or by a legacy distribution using the default *.cloudfront.net certificate with an old policy. Pick TLSv1.2_2021 or TLS1.3_2025 under the distribution's Settings → Security policy.

Enable TLS 1.3

Set the distribution's security policy to TLSv1.2_2021 (or TLS1.3_2025 for TLS 1.3 only).

Turn off TLS 1.0 and 1.1

Set the distribution's security policy to TLSv1.2_2021 or newer.

Use strong TLS 1.2 cipher suites

Set the distribution's security policy to TLSv1.2_2021 or newer.

Redirect HTTP to HTTPS

Set each behavior's Viewer protocol policy to "Redirect HTTP to HTTPS".

Send HSTS

Attach a response headers policy with Strict-Transport-Security, for example the managed SecurityHeadersPolicy, or a custom one with max-age 31536000 and includeSubDomains.

Check that it worked

After you deploy, rescan your domain. A quantum-safe setup shows X25519MLKEM768 as the negotiated key exchange. From a terminal:

curl qsafe.sh/your-domain.com?fresh

Prefer to let an AI agent make the change? The qsafe-fix skill and the MCP server use this same guide. It's also available as JSON from /api/v1/fixes/aws-cloudfront.

Esc