Home

Have a project in mind?

Book a free scoping call

5.0 from 358 reviews · 600+ projects

Post-Quantum TLS on AWS Load Balancers and Cloudflare

How to turn on hybrid post-quantum key exchange on AWS Application and Network Load Balancers and Cloudflare, what each covers, and the hops they leave classical.

Muhammad NabeelMuhammad NabeelCo-founder, Teamseven
Published
Reading time
7 min read

“Co-founder and engineer at Teamseven. 9+ years building custom SaaS, CRMs, and AI products for clients in the US, UK, EU, and Australia.” Meet the author

Post-quantum TLS on AWS load balancers and Cloudflare

If your product runs on AWS behind a load balancer, or sits behind Cloudflare, the first step of a post-quantum migration is a setting, not a project. The catch is that each platform only covers the connection it terminates. The hops behind it are separate, and that is where teams tend to stop too early.

This post covers what to switch on, how to check it, and what it leaves for you to do. If you run your own NGINX instead, see post-quantum TLS on NGINX.

AWS Application and Network Load Balancers

Since November 2025, AWS Application Load Balancers and Network Load Balancers support hybrid post-quantum key exchange. It is opt-in: existing listeners keep their current policy until you change it.

What to change

Each HTTPS (ALB) or TLS (NLB) listener has a security policy. Policies with PQ in the name offer hybrid key exchange, including X25519MLKEM768. At the time of writing, AWS recommends:

  • ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09 for most workloads.
  • ELBSecurityPolicy-TLS13-1-2-FIPS-PQ-2025-09 if you need FIPS.

You can change it in the console under the listener's security settings, or with the CLI:

aws elbv2 modify-listener \
  --listener-arn arn:aws:elasticloadbalancing:...:listener/app/your-alb/... \
  --ssl-policy ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09

Check the current list of policies in the ALB documentation before you choose. AWS adds new ones over time.

Things to know before you switch

All secure listeners on one load balancer must use compatible policies. AWS treats PQ and non-PQ policies as incompatible with each other, so plan to move every HTTPS listener on that load balancer together.

These policies also set which TLS versions are allowed. The "TLS13-1-2" policies allow TLS 1.3 and 1.2. If you currently allow TLS 1.0 or 1.1 for a very old client, moving to these policies will cut it off. Find out from your logs first.

Clients that don't support ML-KEM fall back to classical key exchange, as long as the policy includes classical groups, which the recommended ones do.

How to check it worked

ALB connection logs record the key exchange used by each connection, so you can see the split between hybrid and classical. Turn on connection logs to an S3 bucket before you change the policy, so you have a before-and-after picture.

From outside, the same OpenSSL 3.5 test works against the load balancer's DNS name or your domain:

openssl s_client -connect api.your-domain.com:443 -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -i "group"

What it doesn't cover

The load balancer protects the connection from the client to AWS. If the load balancer talks to your targets over HTTPS, that is a separate connection, and its key exchange depends on what your targets support. If it talks to them over plain HTTP inside a private VPC, there is no TLS on that hop to upgrade, but write that decision down in your cryptographic inventory.

The same goes for everything your app calls from inside AWS: databases, other services, third-party APIs. Each of those connections is its own question.

Cloudflare

Visitors to Cloudflare

If your site or API is proxied through Cloudflare, connections from browsers to Cloudflare's edge already use hybrid post-quantum key exchange where the browser supports it. Cloudflare reports that more than two-thirds of browser traffic reaching its network is protected this way. There is nothing to switch on.

This only applies to traffic that is proxied (the orange cloud). DNS-only records go straight to your server, so your server's own TLS setup decides.

Cloudflare to your origin

This is the hop most teams forget. Since mid-2026, Cloudflare checks what each origin supports and uses X25519MLKEM768 automatically when the origin offers it. It falls back to classical key exchange when it doesn't.

So the work on Cloudflare is on your side: make your origin support the hybrid group. If your origin is NGINX, that means OpenSSL 3.5 or later and no ssl_ecdh_curve line excluding it. If your origin is an AWS load balancer, that means a PQ policy on its listener.

Cloudflare's documentation suggests checking an origin directly with BoringSSL's client:

bssl client -connect your-origin.example.com:443 -curves X25519MLKEM768

The output should name X25519MLKEM768 as the curve.

If you use Cloudflare Tunnel, the connection between cloudflared and Cloudflare's network already uses post-quantum key agreement.

AWS behind Cloudflare

A common setup is Cloudflare in front of an AWS load balancer. That gives you three hops:

  1. Browser to Cloudflare: already hybrid for current browsers.
  2. Cloudflare to the AWS load balancer: hybrid once the listener has a PQ policy.
  3. Load balancer to your targets: depends on your targets, or no TLS at all inside the VPC.

Changing the listener policy covers hop 2. Hop 1 is done for you. Hop 3 needs its own decision.

What neither platform changes

Your certificates. Both platforms keep using classical certificates for now, because browsers don't yet support post-quantum ones. Hybrid key exchange protects the confidentiality of traffic recorded today, which is the urgent part. Certificates come later. Our post-quantum guide for SaaS teams explains why key exchange comes first.

Where we come in

We do this as part of our cloud and DevOps work: switch the edge, check each hop behind it, log what negotiates what, and write it down. If you want the whole chain mapped and moved, see our post-quantum migration service.

FAQ

Does changing the ALB security policy cause downtime? Changing a listener's policy applies to new connections. Existing connections finish on the old settings. Test on a staging load balancer first and change production at a quiet time.

Is there an extra AWS charge for post-quantum TLS? AWS announced the post-quantum policies at no additional cost. You pay the same load balancer charges as before.

Do I need to do anything on Cloudflare? For visitors reaching Cloudflare, no. For the connection from Cloudflare to your server, your origin needs to support X25519MLKEM768. Cloudflare will use it automatically once it does.

What about CloudFront and API Gateway? Check AWS's current documentation for each service. Support differs between services and changes over time, so confirm with a handshake test rather than assuming.

TaggedAWS post-quantumALB post-quantum TLSCloudflare post-quantumML-KEMpost-quantum TLSDevOps

Start your project

Have a software project in mind? Tell us what you're building.

30 minutes. No slides. We'll look at your idea and tell you honestly whether we can help, and what it would actually take.

  • We usually reply within an hour
  • NDA available before we talk
  • 5.0 from 358 reviews · Fiverr Vetted Pro

What happens next

  1. 01
    Book a 30-minute slotPick a time that works. No prep needed.
  2. 02
    We have a real conversationYou explain what you're building. We ask the hard questions.
  3. 03
    You get a scoped proposalFixed price and fixed timeline within 48 hours, or we tell you why it's not a fit.