Post-quantum TLS readiness

Enable hybrid PQC on AWS Application Load Balancer

Hybrid post-quantum key exchange on an ALB is selected by the listener’s TLS security policy, not by instance config. AWS documents policies whose names include PQ, and recommends a specific 2025-09 policy.

This changes key exchange only. Keep a classical fallback. Do not rotate certificates, and do not treat today’s connections as being read — the concern is harvest-now-decrypt-later. Test in staging: hybrid ClientHellos are larger and some middleboxes mishandle them.

Minimum versions

An HTTPS listener on an Application Load Balancer. Hybrid PQ is TLS 1.3 only; a client that connects with TLS 1.2 to a PQ policy still uses a classical group. Clients must support ML-KEM to negotiate the hybrid groups.

Configuration

ALB HTTPS listener security policy

# AWS currently recommends (as of the ALB security-policy documentation):
#   ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09
# or the FIPS variant:
#   ELBSecurityPolicy-TLS13-1-2-Res-FIPS-PQ-2025-09
#
# Those names are copied from the official ALB "Security policies" page.
# Before applying one, re-check that page — AWS adds policies over time.

# AWS CLI example (replace the ARNs). This does not create the listener;
# it updates the policy on an existing HTTPS listener.
aws elbv2 modify-listener \
  --listener-arn arn:aws:elasticloadbalancing:REGION:ACCOUNT:listener/app/NAME/ID/ID \
  --ssl-policy ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09

# In CloudFormation / Terraform, set the listener SslPolicy / ssl_policy
# to the same documented name.

How to verify

openssl s_client -tls1_3 -groups X25519MLKEM768 -connect HOST:443 </dev/null 2>&1 | grep -E "Negotiated TLS1.3 group|Server Temp Key|handshake failure"
# Expect: Negotiated TLS1.3 group: X25519MLKEM768
# Needs OpenSSL 3.5+ on the machine running the command (otherwise a failure is a false negative).

# Or: pqcscan HOST

Notes

Fix with your agent

Paste this into Cursor, Claude Code or Codex in the repo that terminates TLS. Review the PR, and test in staging first. The packaged skill is not published yet.

You are fixing TLS key exchange for post-quantum readiness (hybrid X25519MLKEM768).
1. If I have a pqc-report.json, read it. Otherwise run:
   openssl s_client -tls1_3 -groups X25519MLKEM768 -connect HOST:443 </dev/null
   (needs OpenSSL 3.5+; a handshake failure means the server does not offer hybrid).
2. Find TLS config in this repo: nginx (ssl_ecdh_curve), Caddy (tls { curves }), HAProxy (ssl-default-bind-curves),
   Node (ecdhCurve), Go (tls.Config.CurvePreferences), Dockerfile base images.
3. Enable X25519MLKEM768 FIRST with classic fallback (X25519, secp256r1). Never remove the fallback.
4. Flag anything pinned to OpenSSL < 3.5, Go < 1.24 or an old Node, and propose a version bump. Do not bump silently.
5. If TLS terminates at Cloudflare or an AWS ALB/CloudFront, tell me to change that service's TLS policy instead of editing origin config.
6. Grep for RSA/ECDH/ECDSA usage in code and add `// TODO(crypto-agility)` comments only. Do not change certificates or key types.
7. Open a PR that explains each change, how to verify it, and how to roll back.

Sources

Reviewed 4 Dec 2026 against the official pages linked above. If a vendor page has since changed, follow the vendor page. Other stacks: nginx · Caddy · HAProxy · Node.js · Go · OpenSSL · Cloudflare · Java (JDK)