Enable post-quantum TLS on AWS
It depends on which AWS service terminates TLS for your site. CloudFront does it automatically. Load balancers and API Gateway only do it when you pick a security policy with PQ in its name.
CloudFront: nothing to do
AWS enabled hybrid post-quantum key exchange on viewer connections for every CloudFront security policy in September 2025. CloudFront accepts X25519MLKEM768 and SecP256r1MLKEM768, on TLS 1.3 connections only. A distribution in front of your site already passes.
Application and Network Load Balancers: choose a PQ policy
This is opt-in. A listener only offers post-quantum key exchange if its security policy has PQ in the name. AWS recommends:
ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09The console now selects that policy for new listeners, but the CLI, CloudFormation and CDK still default to ELBSecurityPolicy-2016-08, which has no post-quantum support. Existing listeners, and any created from infrastructure code, need changing:
aws elbv2 modify-listener \
--listener-arn <listener-arn> \
--ssl-policy ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09In CloudFormation, set SslPolicy on the AWS::ElasticLoadBalancingV2::Listener resource to the same name. The hybrid policies accept X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024, and still serve classical key exchange to clients that don’t support ML-KEM.
Other names in the family trade compatibility for strictness, for example ELBSecurityPolicy-TLS13-1-3-PQ-2025-09 (TLS 1.3 only) and FIPS variants such as ELBSecurityPolicy-TLS13-1-2-Res-FIPS-PQ-2025-09. The policies with CNSA2 in the name use ML-KEM-1024 on its own and do not offer the hybrid groups, so they are not the choice for a public website.
API Gateway: REST APIs only
For Regional and private REST APIs and custom domains, choose a policy with PQ in the name, such as SecurityPolicy_TLS13_1_2_PQ_2025_09. AWS documents that HTTP and WebSocket APIs only support the TLS_1_2 policy, so they cannot offer it directly. One option is to put CloudFront in front.
EC2 running your own web server
If TLS terminates on the instance, follow the nginx or Apache guide. On a current Amazon Linux 2023 release the system OpenSSL is new enough, but post-quantum groups are off until you run:
sudo update-crypto-policies --set DEFAULT:PQCheck that it worked
Test the site here. The registry offers only post-quantum key exchange, so a pass means the server accepted it.
Try , , ,
Or from a terminal, with OpenSSL 3.5 or newer on your own machine (the openssl that ships with macOS is LibreSSL and won’t work):
openssl s_client -connect example.com:443 -servername example.com \
-groups X25519MLKEM768 </dev/null 2>&1 | grep "Negotiated TLS1.3 group"A ready server prints Negotiated TLS1.3 group: X25519MLKEM768. One that isn’t ends the handshake with alert handshake failure.
We verified the policy names and group lists against AWS’s documentation on 4 December 2026. We did not create AWS resources to test them.
Sources
- AWS: CloudFront supported protocols and ciphers
- AWS: CloudFront post-quantum announcement (September 2025)
- AWS: security policies for Application Load Balancers
- AWS: security policies for Network Load Balancers
- AWS: load balancer post-quantum announcement (November 2025)
- AWS: API Gateway security policies
- AWS: post-quantum crypto policies on Amazon Linux 2023
Last reviewed 4 December 2026.