By Bonaventure Ogeto · Published · Last verified:

How to Enable Post-Quantum TLS Today: A Developer Guide

The short answer

Enable the hybrid group X25519MLKEM768, which pairs today's X25519 with the post-quantum ML-KEM-768, on every TLS 1.3 endpoint you run. OpenSSL 3.5[1] and Go 1.24[2] already offer it by default, as do current Chrome, Firefox and Apple systems. Upgrade the library, list the group first, then confirm it with openssl s_client.

Source: Mctaba Labs, “How to Enable Post-Quantum TLS Today: A Developer Guide”, last verified 4 December 2026, mctaba.com/learn/cryptography/enable-post-quantum-tls-developer-guide

At a glance

  • X25519MLKEM768 is a hybrid: the session key stays safe if at least one of the component schemes is secure[3]. It protects traffic recorded today and leaves your certificates as they are.
  • It is the standard choice. RFC 10024 defines it, and IANA lists it as group 4588 (0x11EC), marked Recommended[4].
  • Support is wide: Chrome 131[5], Firefox 132[6], Apple's iOS 26[7] family, OpenSSL 3.5[1], Go 1.24[8] and Node.js builds that bundle OpenSSL 3.5.
  • The main risk is old servers and middleboxes that cannot read a ClientHello split across two packets. Test before you rely on it, and keep classical groups as a fallback.

What is post-quantum TLS?

TLS (Transport Layer Security) is the protocol behind every HTTPS connection: the padlock in a browser, a banking app talking to its API, your server calling a payment provider. Each connection starts with a handshake. Client and server agree on a fresh session key through key exchange, and the server proves its identity with a certificate signature. Everything after that is encrypted with a symmetric cipher such as AES.

Google's Chrome team put the quantum problem in one line: in TLS, the symmetric encryption is considered safe against quantum attack, but the way that the symmetric keys are created is not[9]. Today's key exchange, usually X25519[10], is elliptic-curve cryptography. Someone who records a handshake today could recover its session key once a large quantum computer exists, then read the whole conversation. No such machine exists yet[11], and no published attack breaks deployed encryption; the risk is the recording. That is the harvest now, decrypt later threat.

Post-quantum TLS reinforces the key exchange with ML-KEM, NIST's lattice-based key encapsulation mechanism (a KEM: one side sends a public key, the other uses it to wrap a shared secret). The version deployed today is a hybrid named X25519MLKEM768. It runs X25519 and ML-KEM-768 side by side and feeds both results into the session key, so derived keys stay secure if at least one of the component schemes is secure[3]. Put the other way round, breaking it requires breaking both[12]. ML-KEM-768 is also the parameter set NIST recommends as the default[3]; the NIST standards guide explains ML-KEM itself.

Three points of scope:

  • TLS 1.3 only. The UK NCSC notes that TLS 1.3 is the only version that supports PQC[13], so anything still on TLS 1.2 has to move first.
  • Key exchange, not certificates. Your RSA or ECDSA certificate stays as it is. Post-quantum signatures are a later step, though Google says signatures must be migrated before a cryptographically relevant quantum computer exists[14].
  • The standard is settled. RFC 10024, published in August 2026[15], defines three hybrid groups[15]: X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. TLS 1.3 itself is now RFC 9846[16], which replaced RFC 8446 in July 2026[16].

Which browsers, libraries and platforms support X25519MLKEM768?

Most clients already offer it. Cloudflare reported that by April 2026 over 65% of human traffic[17] to its network was post-quantum encrypted.

SoftwarePost-quantum hybrid sinceNotes
Chrome, desktopChrome 131[5], stable from 12 November 2024[18]On by default; the draft Kyber version was on by default from Chrome 124[19]
Chrome, AndroidChrome 131[20]On by default
Firefox, desktopFirefox 132, released 29 October 2024[6]On by default on desktop[21]; HTTP/3 from Firefox 135[22]
Firefox, AndroidFirefox for Android 145[23]TLS 1.3 and HTTP/3
Apple platformsiOS 26, iPadOS 26, macOS Tahoe 26, visionOS 26[7]Offered by default through URLSession and Network.framework, not Secure Transport[12]
OpenSSLOpenSSL 3.5.0, released 8 April 2025[1]Default key shares X25519MLKEM768 and X25519; OpenSSL 3.5 is supported until 8 April 2030[24]
BoringSSLGroup SSL_GROUP_X25519_MLKEM768Defined in its public header[25]
GoGo 1.24, released 11 February 2025[8]On by default when CurvePreferences is nil[2]
Node.jsNode.js 24.5.0[26] and 22.20.0[27], the first in their lines to bundle OpenSSL 3.5Accepted by the ecdhCurve option[28]
JavaJDK 24[29]ML-KEM (JEP 496[30]) and ML-DSA (JEP 497[30]) as APIs; check your JDK's notes before assuming TLS support
nginxWhen built against OpenSSL 3.5 or later[31]Debian 13 and Alpine Linux 3.22 ship OpenSSL 3.5.x[31]; Debian 12 ships OpenSSL 3.0.x[31]
CloudflareVisitors since 3 October 2022[32], with a Kyber draft at first[33]Prefers post-quantum key agreement to origins[34] that support it
AWS KMS, ACM, Secrets Manager7 April 2025[35]Kyber to be removed from AWS endpoints in 2026[35]

How do I enable post-quantum TLS on my server?

For data in transit, the UK NCSC says you should be aiming to make this move now[13]. The same seven steps apply on any stack:

  1. Upgrade the TLS library to one that supports X25519MLKEM768, such as OpenSSL 3.5 or later. OpenSSL 3.0.x[31] has no post-quantum algorithms, and every series except 4.1, 4.0 and 3.5 is out of support[24].
  2. Make sure TLS 1.3 is enabled, because post-quantum key exchange works only in TLS 1.3.
  3. Put X25519MLKEM768 first in the server's list of key exchange groups, followed by X25519 and P-256. Older clients then fall back to a classical group instead of failing. If your configuration pins a classical list, the hybrid stays off until you add it.
  4. Reload the server and confirm the hybrid group with openssl s_client.
  5. Check that a client offering only classical groups still connects.
  6. Watch handshake errors after the change, because old middleboxes can fail on the larger ClientHello.
  7. Repeat the upgrade for outbound clients, such as the services that call payment and partner APIs.

For developers: how do I configure nginx, Go and Node.js?

nginx

Set the groups in the server block:

/etc/nginx/conf.d/api.conf
server {
    listen 443 ssl;
    server_name api.example.co.ke;

    ssl_certificate     /etc/ssl/api.example.co.ke.pem;
    ssl_certificate_key /etc/ssl/api.example.co.ke.key;
    ssl_protocols       TLSv1.2 TLSv1.3;
    ssl_ecdh_curve      X25519MLKEM768:X25519:prime256v1;
}

Then confirm nginx was built against OpenSSL 3.5 or later, test the configuration and reload:

nginx -V 2>&1 | grep -i openssl   # look for OpenSSL 3.5 or later
nginx -t && nginx -s reload

That group line matches the sample configuration on the NGINX blog[31]. The default value, auto, uses the list built into the OpenSSL library[36], which in OpenSSL 3.5 already prefers the hybrid; an explicit line documents the choice.

Go

Go 1.24 and later need no change unless your code sets CurvePreferences. If it does, keep the hybrid in the list:

server.go
package main

import (
	"crypto/tls"
	"log"
	"net/http"
)

func main() {
	srv := &http.Server{
		Addr: ":8443",
		TLSConfig: &tls.Config{
			MinVersion: tls.VersionTLS12,
			// nil CurvePreferences already offers X25519MLKEM768 in Go 1.24+.
			CurvePreferences: []tls.CurveID{tls.X25519MLKEM768, tls.X25519, tls.CurveP256},
		},
	}
	log.Fatal(srv.ListenAndServeTLS("cert.pem", "key.pem"))
}

If a buggy peer times out, the setting GODEBUG tlsmlkem=0[2] turns the default off until the peer is fixed.

Node.js

node -p process.versions.openssl must show OpenSSL 3.5 or later. Then list the groups in ecdhCurve:

server.mjs
import { createServer } from 'node:https';
import { readFileSync } from 'node:fs';

createServer(
  {
    key: readFileSync('key.pem'),
    cert: readFileSync('cert.pem'),
    minVersion: 'TLSv1.2',
    // Hybrid first, then classical groups for older clients
    ecdhCurve: 'X25519MLKEM768:X25519:P-256',
  },
  (req, res) => res.end('ok\n'),
).listen(8443);

In a local test this server gave a hybrid-only client X25519MLKEM768, and gave X25519 to classical-only and TLS 1.2 clients.

How do I check what my endpoint negotiates?

Offer only the hybrid group. The handshake succeeds only if the server supports it:

openssl s_client -groups X25519MLKEM768 -connect example.com:443 -servername example.com </dev/null 2>/dev/null \
  | grep -E 'Negotiated TLS1.3 group|Temp Key|^Protocol'
Negotiated TLS1.3 group: X25519MLKEM768
Protocol: TLSv1.3

Against a server limited to classical groups, the handshake fails (the alert, SSL alert number 40, goes to stderr) and the output reads Negotiated TLS1.3 group: <NULL>; the Protocol line prints even then, so judge by the group line. Run it again with -groups X25519 to confirm step five: a working server answers with Peer Temp Key: X25519.

Other ways to check:

  • macOS Tahoe 26: nscurl --tls-diagnostics[7] prints Negotiated TLS key exchange group (name): X25519MLKEM768 for a supporting server.
  • Chrome: open DevTools, then the Security (or Privacy and security) panel. The connection details name the key exchange, and a hybrid connection shows X25519MLKEM768.
  • BoringSSL: Cloudflare suggests bssl client with -curves X25519MLKEM768[34] for origin servers.
  • curl built on OpenSSL takes the same list through its --curves option[37].
  • AWS KMS: each call's CloudTrail entry shows the group in tlsDetails.keyExchange[38].

From code, Node.js reports the group through getEphemeralKeyInfo()[28]:

check-group.mjs
import tls from 'node:tls';

const host = process.argv[2] ?? 'example.com';
const socket = tls.connect({ host, port: 443, servername: host }, () => {
  console.log(host, socket.getProtocol(), socket.getEphemeralKeyInfo());
  socket.end();
});
example.com TLSv1.3 { type: 'TLSGroup', name: 'X25519MLKEM768', size: undefined }

That output came from a Node.js 24 build with no ecdhCurve set, so the client offered the hybrid by default. A Node.js 22 build also negotiated the hybrid, since it connected to a local server that accepts nothing else, but printed an empty object; check with openssl there.

What breaks when you turn on post-quantum TLS?

The trouble comes from size. The client's X25519MLKEM768 key share is 1,216 bytes[15], where X25519 alone needs 32 bytes[15], so the ClientHello, the first message of the handshake, is typically split across two packets[34].

  • Buggy servers call read() only once[20], so they miss the rest of the ClientHello. tldr.fail, which tracks the bug, says they then reject connections that use post-quantum cryptography[20] instead of falling back. The fix is to keep calling read() until the full ClientHello has arrived[20]. Test from Chrome 131 or newer on desktop[20]: a reset connection means the server is buggy.
  • Middleboxes such as firewalls and TLS-inspecting proxies fail the same way. Chrome's default rollout revealed bugs in several TLS middlebox products[19], and Apple warns that its newest systems may fail to connect to some legacy servers[7].
  • Strict settings cut off old servers. In Cloudflare, requiring post-quantum key exchange to an origin that lacks it returns a 525 error[34]; the default Automatic setting keeps compatibility.

Temporary escape hatches exist: Go's GODEBUG setting, and OpenSSL's ?X25519MLKEM768: prefix, which drops the keyshare prediction[39] so the hybrid is used only when a server asks for it. Use them to buy time, then fix the device. The real risks of post-quantum migration covers the wider failure modes.

What about M-Pesa, Paystack and bank APIs?

Payment callbacks, webhooks and mobile banking APIs that run over HTTPS have two ends, and you control one of them.

  • Inbound callbacks and webhooks. When a payment provider calls your HTTPS callback URL, your server is the TLS server. Enable the hybrid there and each connection uses it whenever the caller offers it. You cannot change what the caller runs, but you can log the group each connection used (in nginx, add $ssl_curve to the log format) to see how many callers already offer the hybrid.
  • Outbound API calls. When your service fetches a Daraja access token from its HTTPS endpoint[40] or calls any payment API, your runtime is the client. Go 1.24 and OpenSSL 3.5 based runtimes offer the hybrid by default; the provider's server decides whether it is used.
  • Mobile apps. An iOS 26 app using URLSession already offers it by default[12], so the API gateway behind a banking or wallet app is the part that decides.
  • Webhook signatures stay. Paystack signs webhooks with HMAC SHA512[41], which is symmetric, so keep verifying them exactly as before. The guides to verifying the x-paystack-signature header and securing payment webhooks still apply.

For the business side of the migration, see post-quantum readiness for Kenyan and African businesses. To find every endpoint that needs this change, start with the cryptographic inventory guide. The cryptography series hub has the rest.

Frequently asked questions

Does post-quantum TLS slow down my API?
Hardly. Apple reports that ML-KEM's speed is comparable to or better than[12] that of its classical counterparts. The cost is size: the client's key share grows to 1,216 bytes[15], which can add a packet to each new handshake. Once the handshake is done, the connection runs as before.
Do I need new certificates for post-quantum TLS?
No. Hybrid key exchange works with your existing RSA or ECDSA certificate. Post-quantum certificates using ML-DSA are the next step; Cloudflare, for example, has supported ML-DSA signatures on connections to origin servers since mid-2026[34].
Should I use pure ML-KEM instead of the hybrid?
Not on public endpoints yet. The final RFC for pure ML-KEM in TLS was still awaited in October 2026[13], and IANA does not mark those groups Recommended[4]. US national security systems are the exception: a draft CNSA 2.0 profile for TLS 1.3 requires ML-KEM-1024[42].
Is X25519Kyber768 the same as X25519MLKEM768?
No. X25519Kyber768 used a draft of Kyber. Chrome switched from codepoint 0x6399 to 0x11EC[5], the final ML-KEM version, in Chrome 131, Go 1.24 removed the draft[2], and AWS said it would remove Kyber from all its endpoints in 2026[35]. Configure X25519MLKEM768.
Does TLS 1.2 support post-quantum key exchange?
No. The UK NCSC says TLS 1.3 is the only version that supports PQC[13], and earlier versions will not be upgraded. Keep TLS 1.2 only for clients that cannot move yet, and plan their retirement.
How can I tell whether my own browser uses post-quantum TLS?
Visit pq.cloudflareresearch.com[43], which checks your connection, or open Chrome DevTools on any HTTPS site and look at the Security panel: a hybrid connection names X25519MLKEM768 as the key exchange.

Sources

  1. [1] OpenSSL Library, 8 April 2025, checked 4 December 2026
  2. [2] The Go Project, 11 February 2025, checked 4 December 2026
  3. [3] NIST, October 2026, checked 4 December 2026
  4. [4] IANA, checked 4 December 2026
  5. [5] Google (Online Security Blog), 13 September 2024, checked 4 December 2026
  6. [6] Mozilla, 29 October 2024, checked 4 December 2026
  7. [7] Apple Support, 18 June 2026, checked 4 December 2026
  8. [8] The Go Project, 11 February 2025, checked 4 December 2026
  9. [9] Google (Chromium Blog), 10 August 2023, checked 4 December 2026
  10. [10] Cloudflare, 28 October 2025, checked 4 December 2026
  11. [11] NIST, 27 February 2026, checked 4 December 2026
  12. [12] Apple Developer, June 2025, checked 4 December 2026
  13. [13] UK National Cyber Security Centre (NCSC), 15 October 2026, checked 4 December 2026
  14. [14] Google, 25 March 2026, checked 4 December 2026
  15. [15] RFC Editor (IETF), August 2026, checked 4 December 2026
  16. [16] RFC Editor (IETF), July 2026, checked 4 December 2026
  17. [17] Cloudflare, 7 April 2026, checked 4 December 2026
  18. [18] Google (Chrome Releases), 12 November 2024, checked 4 December 2026
  19. [19] Google (Chromium Blog), 23 May 2024, checked 4 December 2026
  20. [20] tldr.fail, checked 4 December 2026
  21. [21] Mozilla Bugzilla, 16 September 2024, checked 4 December 2026
  22. [22] Mozilla, 4 February 2025, checked 4 December 2026
  23. [23] Mozilla, 11 November 2025, checked 4 December 2026
  24. [24] OpenSSL Library, 1 December 2026, checked 4 December 2026
  25. [25] Google (BoringSSL source), checked 4 December 2026
  26. [26] Node.js, 31 July 2025, checked 4 December 2026
  27. [27] Node.js, 24 September 2025, checked 4 December 2026
  28. [28] Node.js, checked 4 December 2026
  29. [29] OpenJDK, 18 March 2025, checked 4 December 2026
  30. [30] Oracle (Java SE documentation), March 2025, checked 4 December 2026
  31. [31] NGINX Community Blog (F5), 3 December 2025, checked 4 December 2026
  32. [32] Cloudflare, 3 October 2022, checked 4 December 2026
  33. [33] Cloudflare, 29 September 2023, checked 4 December 2026
  34. [34] Cloudflare Docs, 23 November 2026, checked 4 December 2026
  35. [35] Amazon Web Services (AWS Security Blog), 7 April 2025, checked 4 December 2026
  36. [36] nginx.org, checked 4 December 2026
  37. [37] curl project, checked 4 December 2026
  38. [38] Amazon Web Services, checked 4 December 2026
  39. [39] OpenSSL Library, 8 April 2025, checked 4 December 2026
  40. [40] Safaricom Daraja developer portal (API Documentation), Internet Archive snapshot of 10 December 2019, 10 December 2019, checked 4 December 2026
  41. [41] Paystack (developer documentation), checked 4 December 2026
  42. [42] IETF (Internet-Draft by NSA-CCSS authors), 30 October 2026, checked 4 December 2026
  43. [43] Cloudflare Research, checked 4 December 2026

Related guides