How to turn on post-quantum TLS

Graphic: "TLS 1.3" above "OpenSSL 3.5", "nginx", "Apache", "IIS", "Cloudflare", "AWS", "Azure", "Java", "Go" and "Node.js", on a dark blue background.

Author

Fredrik Standahl

Co-founder and CEO

fredrik@fmcybersecurity.com

Browsers already offer post-quantum key exchange. Here is the setting for nginx, Apache, Windows Server, Cloudflare, AWS and Azure, and how to test the result.

7 min read

In brief: Browsers already offer post-quantum key exchange, and your traffic is protected once your server answers in kind. On many platforms an update or a single line of configuration is enough. This guide gives you the setting for nginx, Apache, Windows Server, Cloudflare, AWS and Azure, and shows how to test afterwards.

Sources

Key points

  • Post-quantum key exchange requires TLS 1.3 on both client and server.
  • With OpenSSL 3.5 or newer it is on by default in nginx and Apache, as long as the configuration does not carry an old list of curves.
  • Windows Server 2025 supports it, but you have to turn it on yourself.
  • Cloudflare, Amazon CloudFront and Azure Front Door have it on by default towards visitors. The connection onwards to your own server needs a separate check.
  • The handshake grows by about 1.2 KB, so test firewalls, WAFs and TLS inspection after the change.

What is hybrid key exchange?

In a hybrid key exchange the client and the server agree on a key with two algorithms at once, a classical one and the post-quantum ML-KEM. The connection stays protected as long as one of them holds. This protects traffic that is stored today to be decrypted later, as we explain in our guide to starting the move to post-quantum cryptography.

The standard RFC 10024 from August 2026 defines three groups. X25519MLKEM768 is the one browsers send. Chrome, Edge, Firefox and Safari have it on by default, according to Cloudflare’s overview. SecP256r1MLKEM768 and SecP384r1MLKEM1024 are built on the NIST curves and are used where requirements call for them.

Certificates stay classical for now. The change concerns the key exchange, and you do not need a new certificate to turn it on.

No source says that today’s encryption has been broken. On 2 December 2026 the US government wrote that the new discoveries “do not present an immediate and widespread threat”.

Nginx and Apache with OpenSSL 3.5

Both web servers get their cryptography from OpenSSL. From version 3.5 the hybrid group comes first in the default list, and the OpenSSL release notes say that clients offer X25519MLKEM768 and X25519 by default. Debian 13 ships with OpenSSL 3.5.

Start by checking which version nginx was built with. The command nginx -V shows it, and the answer can differ from what openssl version reports on the same machine.

If your configuration has no ssl_ecdh_curve, nginx uses the OpenSSL default list. Many configurations carry an older line that lists classical curves only, and that line turns the hybrid group off. Nginx shows this line in its own guide:

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve ?X25519MLKEM768/X25519:secp384r1:prime256v1;

The ? and / syntax needs OpenSSL 3.5, and on an older version nginx will not start. Run nginx -t before you reload the configuration.

In Apache you set the groups with the SSLOpenSSLConfCmd directive, which passes the command on to OpenSSL:

SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1

Keep OpenSSL up to date. Version 3.5.10 was released on 1 December 2026 as a security update.

Windows Server and IIS

IIS uses Schannel, the TLS library in Windows. Microsoft added hybrid key exchange to Windows Server 2025 with the update of 14 July 2026 (KB5099536). Windows 11 versions 24H2 and 25H2 received support with update KB5089573 from May 2026. This is set out in Microsoft’s FAQ on TLS 1.3 and post-quantum cryptography.

The groups are off by default. You turn them on in PowerShell as an administrator:

Enable-TlsEccCurve -Name "X25519_MLKEM768" -Position 0
Get-TlsEccCurve

-Position 0 puts the hybrid group first in the list. Without it the server may choose a classical group.

If you manage the order through Group Policy, the policy overrides PowerShell. In that case you add the group to the ECC Curve Order setting, which Microsoft describes here.

These sources name Windows 11 and Windows Server 2025 only. If you run IIS on Windows Server 2022 or older, you can place a service that supports hybrid key exchange in front of the server, such as one of those below.

Cloudflare

Towards visitors there is nothing for you to do. All websites and APIs served through Cloudflare over TLS 1.3 have supported hybrid key exchange since October 2022, according to Cloudflare’s documentation.

The connection from Cloudflare to your own server is a separate TLS connection. Cloudflare probes what the server supports and prefers X25519MLKEM768 when the server offers it. The feature is called automatic key exchange and is on for all zones, according to the page on connections to origin servers.

The whole path is therefore post-quantum only once the server behind Cloudflare is set up as well, for example as shown for nginx above.

AWS

Amazon CloudFront supports hybrid key exchange in every security policy, with no change on your side. This has been the case since 5 September 2025. The support covers X25519MLKEM768 and SecP256r1MLKEM768 over TLS 1.3.

On an Application Load Balancer or a Network Load Balancer you choose a security policy with PQ in its name. AWS recommends ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09, which supports all three hybrid groups and still accepts clients on TLS 1.2. The details are in the security policy documentation.

The console selects this policy for new listeners. The AWS CLI, CloudFormation and the CDK still default to ELBSecurityPolicy-2016-08, so there you have to name the policy yourself:

aws elbv2 modify-listener \
  --listener-arn LISTENER_ARN \
  --ssl-policy ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09

Azure

Azure Front Door Standard and Premium have had hybrid key exchange on by default since 6 November 2026. The default policy offers SecP256r1MLKEM768 and X25519MLKEM768, and a custom policy can add SecP384r1MLKEM1024.

The protection covers the connection from the client to Front Door. Microsoft’s documentation says the policy does not configure the connection onwards to the origin server.

Microsoft announced on 9 November 2026 that Azure App Service and Azure Functions are getting X25519MLKEM768 for inbound TLS, in a gradual rollout before the end of the year. There is no setting for you to change, and availability may vary by region, according to the App Service team.

For Azure Application Gateway we find no support as of December 2026. The TLS policy overview lists no hybrid groups. If Application Gateway is your outermost layer, the key exchange there remains classical until Microsoft adds support.

Java, Go and Node.js

Services that terminate TLS themselves follow their runtime.

  • Java: JDK 27 was released in September 2026 and puts X25519MLKEM768 first in the default list (JDK-8369848). You can change the list with the jdk.tls.namedGroups system property, as Oracle describes.
  • Go: From Go 1.24, X25519MLKEM768 is on by default when Config.CurvePreferences is not set.
  • Node.js: The official builds use OpenSSL 3.5 from version 22.20. Cloudflare’s overview lists hybrid key exchange as the default from 22.20.0 and 24.5.0.

Check that your code does not set its own list of curves. Such a list overrides the default in the same way as in nginx.

Firewalls and TLS inspection

The client’s share of a hybrid key exchange with X25519MLKEM768 is 1,216 bytes, according to RFC 10024. The first message of the handshake, the ClientHello, therefore grows by about 1.2 KB and is often split across two network packets.

Older firewalls, WAFs and TLS inspection products sometimes read the first packet only. The connection then fails or times out. The fault is described at tldr.fail, which the Go project refers to in its release notes.

Test through the whole chain after the change, including from the office network and through any proxy. If you find equipment that stops the handshake, the fix is to update that equipment.

Test that it works

With OpenSSL 3.5 or newer on your own machine you can test directly:

openssl s_client -connect www.example.com:443 -tls1_3 -groups X25519MLKEM768

The output should contain the line Negotiated TLS1.3 group: X25519MLKEM768.

You can also use our free post-quantum check. It shows whether your website uses post-quantum key exchange over TLS 1.3.

Test both the address your visitors use and the server behind any CDN or load balancer. Repeat the test after major updates, because a new configuration can reset the list of groups.

How can we help?

The key exchange is the first part of the transition. Certificates come next, and for them you need an overview of where they are installed, and automated renewal. That is part of our machine identity work on Idira (CyberArk).

Robin Kvernevik leads our work on identity and Idira (CyberArk). He can help you map your certificates and prepare the move to post-quantum algorithms.

Check your website with our post-quantum check, read more about machine identity, or send an email to hello@fmcybersecurity.com and Robin will get in touch.

Our expertise

Read more articles on strategy

Subscribe to our newsletter and invitations

Sign up
For the complete documentation index, see /llms.txt. Markdown version of this page: /en/insights/strategy/how-to-turn-on-post-quantum-tls.md.