Setup guides

Turn on post-quantumkey exchange.

The rule for almost every server: use a TLS library that has ML-KEM (OpenSSL 3.5+, BoringSSL, AWS-LC, Go 1.24+), and make sure an old group list in your config isn't turning it off. Keep X25519 as a fallback for older clients.

Versions and commands checked against the vendors' own docs on 4 December 2026.

nginx

Needs: OpenSSL 3.5+

nginx uses the OpenSSL it runs with. With OpenSSL 3.5 or newer and ssl_ecdh_curve left at its default (auto), X25519MLKEM768 is already first. If you set the directive yourself, add the group.

Debian 12 and Ubuntu 22.04 and 24.04 ship OpenSSL 3.0, which has no ML-KEM. Your options: move to a distro below, use an nginx build linked to OpenSSL 3.5, or put Caddy or a CDN in front.

Needs OpenSSL 3.5 or newer. Check with: nginx -V

nginx.conf
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;

Check your version: nginx -V 2>&1 | grep -i openssl

Distros that ship OpenSSL 3.5 or newer

DistroOpenSSLML-KEM in TLS
Debian 13 (trixie)3.5On by default
Ubuntu 25.103.5On by default
Ubuntu 26.04 LTS3.5On by default
RHEL 10.1 and newer3.5On by default in the system crypto policy
RHEL 9.7 and newer3.5Off until you run update-crypto-policies --set DEFAULT:PQ
Debian 12, Ubuntu 22.04 and 24.043.0No ML-KEM
RHEL 10.03.2No native ML-KEM

If nginx -V prints built with OpenSSL 3.0.x (running with OpenSSL 3.5.x), the running version is the one that counts.

Run nginx -t before you reload. On OpenSSL older than 3.5 the group name is unknown and the config test fails, so nothing breaks in production.

Sources: nginx: ssl_ecdh_curve, OpenSSL 3.5 release notes, Debian openssl package, Ubuntu openssl package, Red Hat: PQC in RHEL 10.1, Red Hat: PQC in RHEL 9.7

Apache httpd

Needs: OpenSSL 3.5+

mod_ssl passes the list straight to OpenSSL. Needs OpenSSL 3.5 or newer.

ssl.conf
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1

HAProxy

Needs: OpenSSL 3.5+ or AWS-LC

HAProxy hands your group list to the SSL library it was built with. So ML-KEM depends on that library, not on the HAProxy version. First find out which library you have, then set the groups.

haproxy.cfg
global
  ssl-default-bind-curves X25519MLKEM768:X25519:P-256
  ssl-default-bind-options ssl-min-ver TLSv1.2

Check your version: haproxy -vv | grep -iE "ssl library version|openssl version"

Which SSL library you have

Run haproxy -vv. Recent versions print Built with SSL library version and Running on SSL library version. Older ones print Built with OpenSSL version. If the 2 lines differ, HAProxy adds VERSIONS DIFFER! and the running one is what counts.

LibraryML-KEMNotes
OpenSSL 3.5 or newerYesX25519MLKEM768 is in the default group list from 3.5.0.
AWS-LCYesUsed by HAProxy Technologies' own packages. HAProxy supports AWS-LC since 2.9.
wolfSSLLibrary yes, HAProxy untestedwolfSSL 5.8.0 added the hybrid groups. HAProxy marks wolfSSL support experimental. We could not confirm the group passes through HAProxy, so test with haproxy -c.
quictls, OpenSSL 3.0 to 3.4NoNo ML-KEM. HAProxy refuses the config if the group is in the list. HAProxy lists quictls as end of life.

One bind line only

The curves option on a bind line overrides the global default for that listener. Use it to try ML-KEM on 1 frontend first. When curves is set, ecdhe is ignored.

haproxy.cfg
frontend web
  bind :443 ssl crt /etc/haproxy/certs/site.pem curves X25519MLKEM768:X25519:P-256

HAProxy version

No HAProxy release adds ML-KEM by itself. ssl-default-bind-curves and the curves bind option exist in every maintained branch. Run a supported one: 3.0, 3.2 and 3.4 are the long-term branches today.

HAProxy Technologies says its own AWS-LC builds support the hybrid groups from HAProxy Enterprise 3.2 and the Community performance packages 3.3.

Test it

Check the config first. If your library has no ML-KEM, HAProxy stops with unable to set SSL curves list and your running process is untouched. Then reload and test from a client with OpenSSL 3.5 or newer.

shell
haproxy -c -f /etc/haproxy/haproxy.cfg
openssl s_client -connect your-host:443 -servername your-host \
  -groups X25519MLKEM768 -tls1_3 </dev/null 2>&1 | grep "Negotiated TLS1.3 group"
# good: Negotiated TLS1.3 group: X25519MLKEM768

Sources: HAProxy configuration manual, HAProxy: SSL library support, HAProxy: post-quantum guide, HAProxy branches, wolfSSL 5.8.0 hybrid groups

IIS and Windows Server

Needs: Server 2025, July 2026 update

SChannel, the TLS stack under IIS, does hybrid ML-KEM on Windows Server 2025 from the July 14, 2026 update (KB5099536, build 26100.33158). The groups ship turned off. You turn them on for the whole machine, then reboot.

Windows Server 2022, 2019 and older have no ML-KEM in TLS. For those, put a proxy or CDN in front (below).

PowerShell, as admin
Enable-TlsEccCurve -Name "X25519_MLKEM768" -Position 0
Get-TlsEccCurve
# then reboot: the new order applies after the next restart

Check your version: Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" | Select CurrentBuild, UBR

What to know

Your build must be 26100 with UBR 33158 or higher. Any later monthly update includes the July one.

-Position 0 puts the hybrid group at the top of the list, as Microsoft's FAQ says to.

Group Policy wins. If a GPO sets ECC Curve Order (Computer Configuration, Administrative Templates, Network, SSL Configuration Settings), add the hybrid group at the top of that list instead. Microsoft says not to mix the 2 methods.

Hybrid groups only work with TLS 1.3. Leave TLS 1.3 on.

Microsoft documents Group Policy and the TLS cmdlets only. Its docs say editing the priority order in the registry isn't supported, so we give no registry steps.

Microsoft's FAQ doesn't name IIS. IIS uses SChannel through http.sys, so the machine setting applies, and Microsoft quotes http.sys numbers on Server 2025. Test before you rely on it.

Windows 11 24H2 and 25H2 get the same groups from KB5089573, and 26H1 from KB5095091. Also off by default.

Older Windows: put ML-KEM in front

Can't move to Server 2025 yet? End TLS on something that has ML-KEM and forward to IIS. The hop to IIS stays classic, so keep it on your own network.

Azure Front Door (Standard and Premium): the default key exchange policy, called Standard, includes X25519MLKEM768 and SecP256r1MLKEM768 on TLS 1.3. It covers visitor to Front Door only. Front Door to IIS is a separate TLS connection this policy doesn't set.

nginx with OpenSSL 3.5 or newer as a reverse proxy:

Needs OpenSSL 3.5 or newer. Check with: nginx -V

nginx.conf
server {
  listen 443 ssl;
  server_name app.example.com;
  ssl_certificate     /etc/nginx/tls/fullchain.pem;
  ssl_certificate_key /etc/nginx/tls/privkey.pem;
  ssl_protocols TLSv1.2 TLSv1.3;
  ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;

  location / {
    proxy_pass https://iis.internal;
    proxy_set_header Host $host;
  }
}

Sources: Microsoft: Windows TLS 1.3 and PQC FAQ, KB5099536, TLS supported groups in Windows, Enable-TlsEccCurve, Manage TLS in Windows Server, Azure Front Door: TLS key exchange policy

Caddy

Needs: 2.10+, on by default

Caddy 2.10+ offers X25519MLKEM768 by default. Updating is the whole job. If you pinned curves, add it back.

Caddyfile
example.com {
  tls {
    curves x25519mlkem768 x25519
  }
}

Envoy

Needs: BoringSSL

Envoy uses BoringSSL. List the hybrid group in the TLS params of the downstream context.

envoy.yaml
common_tls_context:
  tls_params:
    tls_minimum_protocol_version: TLSv1_2
    ecdh_curves: [X25519MLKEM768, X25519, P-256]

Go

Needs: 1.24+, on by default

Go 1.24+ enables X25519MLKEM768 by default. It goes missing only if you set CurvePreferences yourself or run with GODEBUG=tlsmlkem=0. Go 1.26 adds the 2 SecP hybrids too.

main.go
cfg := &tls.Config{
	MinVersion: tls.VersionTLS12,
	// nil = defaults, or include ML-KEM:
	CurvePreferences: []tls.CurveID{tls.X25519MLKEM768, tls.X25519, tls.CurveP256},
}

Node.js

Needs: 22.20+, 24.5+, 25+

Node ships OpenSSL 3.5 in 22.20+, 24.5+ and 25+, with X25519MLKEM768 in the defaults. If you pass ecdhCurve, include it.

server.js
https.createServer({
  key, cert,
  minVersion: "TLSv1.2",
  ecdhCurve: "X25519MLKEM768:X25519:P-256",
}, app).listen(443);

Check your version: node -p process.versions.openssl

Java

Needs: JDK 25.0.5+ or 27, on by default

JDK 27 (September 2026) and JDK 25.0.5 (the October 2026 update) offer X25519MLKEM768 by default and prefer it, as client and server (JEP 527). Nothing to set unless your code or config pins the groups.

JDK 21 can't. It has no ML-KEM at all: the KEM API came in JDK 21 and ML-KEM itself in JDK 24. The JDK 21.0.13 notes (October 2026) don't list the TLS backport. JDK 25.0.4 and older don't have it either. On JDK 21, use Bouncy Castle JSSE (below) or end TLS in a proxy in front of the JVM.

shell
# only if you need a fixed list, most preferred first
java -Djdk.tls.namedGroups="X25519MLKEM768,x25519,secp256r1,secp384r1" -jar app.jar

Check your version: java -version

jdk.tls.namedGroups

A comma separated list in quotes, most preferred first. The JDK default is already X25519MLKEM768, x25519, secp256r1, secp384r1, secp521r1, x448, ffdhe2048, ffdhe3072, ffdhe4096. The 3 hybrid names are X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. The last 2 are off unless you list them.

Hybrid groups work only with TLS 1.3. Keep a classic group like x25519 in the list for TLS 1.2 clients. In code, SSLParameters.setNamedGroups does the same per socket.

JDK 21 with Bouncy Castle JSSE, for Spring Boot

Bouncy Castle's JSSE provider (bctls) brings its own ML-KEM, so it works on JDK 21. X25519MLKEM768 is in bctls from 1.81. In 1.81 to 1.86 it is on but last in the default list. 1.87 (November 2026) puts it first. Either way, pin the order with jdk.tls.namedGroups: bctls reads the same property.

pom.xml
<dependency>
  <groupId>org.bouncycastle</groupId>
  <artifactId>bctls-jdk18on</artifactId>
  <version>1.87</version>
</dependency>
<!-- pulls in bcutil-jdk18on and bcprov-jdk18on 1.87 -->

Register the providers

Do it in main, before Spring starts the web server, so Tomcat gets its SSLContext from Bouncy Castle.

Application.java
import java.security.Security;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.bouncycastle.jsse.provider.BouncyCastleJsseProvider;

public static void main(String[] args) {
    Security.insertProviderAt(new BouncyCastleProvider(), 1);
    Security.insertProviderAt(new BouncyCastleJsseProvider(), 2);
    SpringApplication.run(Application.class, args);
}

Spring Boot settings

Standard server.ssl settings. Spring Boot has no property for named groups, so pass the system property when you start the app.

application.properties
server.port=8443
server.ssl.certificate=file:/etc/app/tls/fullchain.pem
server.ssl.certificate-private-key=file:/etc/app/tls/privkey.pem
server.ssl.enabled-protocols=TLSv1.3,TLSv1.2

If you use an SSL bundle (server.ssl.bundle), Spring ignores server.ssl.enabled-protocols. Set spring.ssl.bundle.pem.<name>.options.enabled-protocols instead.

Check it works

JDK 25.0.5+ or 27: start with -Djavax.net.debug=ssl:handshake and look in the ServerHello key_share for "named group": x25519mlkem768.

Bouncy Castle: test from outside with OpenSSL, see Test a host that isn't public below. The JDK debug flag doesn't cover the Bouncy Castle provider.

Sources: JEP 527, Oracle JDK 25.0.5 release notes, Oracle JDK 27 release notes, bctls on Maven Central, Spring Boot: SSL, Spring Boot: server properties

OpenSSH

Needs: 10.0+, on by default

OpenSSH 10.0 uses mlkem768x25519-sha256 by default. 9.0 to 9.8 default to sntrup761x25519-sha512, also post-quantum. If you pin KexAlgorithms, put them first.

sshd_config
KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com,curve25519-sha256

Check your version: ssh -V && sudo sshd -T | grep -i kexalgorithms

Postfix

Needs: Defaults, OpenSSL 3.5+

Link Postfix to OpenSSL 3.5+ and keep the default groups. It only sends the big key share when the other server asks, because some mail servers choke on a large hello. Check you didn't override it.

Debian 12 and Ubuntu 22.04 and 24.04 ship OpenSSL 3.0, which has no ML-KEM. Post-quantum mail starts when you move to Debian 13 or Ubuntu 25.10 or newer.

shell
postconf -n | grep -E "tls_eecdh_auto_curves|tls_ffdhe_auto_groups"
# nothing printed = defaults, good

Cloudflare

Needs: On by default, check origin

Visitor to edge is post-quantum by default on TLS 1.3. Edge to origin uses ML-KEM when your origin supports it. If it can't, that half stays classic, so fix the origin too.

AWS

Needs: CloudFront, ALB policies

CloudFront offers X25519MLKEM768 on TLS 1.3. For ALB listeners, pick a policy with PQ in the name, like ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09.

aws cli
aws elbv2 describe-ssl-policies \
  --query 'SslPolicies[?contains(Name, `PQ`)].Name' --output text

Check it worked

Run the check again, or test from your own machine with OpenSSL 3.5 or newer:

shell
openssl s_client -connect example.com:443 -servername example.com \
  -tls1_3 -groups X25519MLKEM768 </dev/null 2>&1 | grep -iE "group|alert"

Run a check

Test a host that isn't public

Our check only sees the public internet. For a lab, staging or internal host, run this from a machine inside the network. That machine needs OpenSSL 3.5 or newer. Put the host's IP or internal name after -connect, and the name on its certificate after -servername.

shell
openssl s_client -connect 10.0.0.12:443 -servername app.internal \
  -groups X25519MLKEM768 -tls1_3 </dev/null 2>&1 | grep -E "Negotiated TLS1.3 group|alert"

Look for the line that starts with Negotiated TLS1.3 group.

What you seeWhat it means
Negotiated TLS1.3 group: X25519MLKEM768ML-KEM works on that host.
alert handshake failure and Negotiated TLS1.3 group: <NULL>The host has no ML-KEM, or it is turned off. The command offers only the hybrid group, so there is no silent fallback.
An error before it connectsYour own OpenSSL is older than 3.5. Check with openssl version.
Connection refused or a timeoutWrong port, or a firewall between you and the host.

Many internal hosts to check? The Organisation plan includes a scanner that runs inside your network. See pricing