pqcheck.si
Language: English

Languages and runtimes

Post-quantum TLS on Node.js

StatusOn after an upgradeYou needNode.js 22.20+ or 24.5+ (official builds bundle OpenSSL 3.5)Checked4 December 2026 · 2 sources

Node's tls and https modules use the OpenSSL bundled with Node. Official builds moved to OpenSSL 3.5 in Node 22.20.0 and 24.5.0, which brings X25519MLKEM768 in the default groups.

Requirements

Should print 3.5 or higher:

node -p process.versions.openssl

Turn it on

Nothing to do with default options. If you set ecdhCurve, include the hybrid group:

server.js

import https from 'node:https';

https.createServer({
  key, cert,
  ecdhCurve: 'X25519MLKEM768:X25519:P-256:P-384',
}, app).listen(443);

Check that it worked

Run the checker against your hostname. It reports X25519MLKEM768 as supported once the change is live.

From a terminal, with an OpenSSL 3.5+ client. Output that names X25519MLKEM768 means it works, a handshake failure alert means it does not:

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

Common problems

Sources

  1. Node.js v22.20.0 release notes (OpenSSL 3.5.2)
  2. Node.js docs: tls.createSecureContext ecdhCurve

More guides: Languages and runtimes

Go (crypto/tls)Java (JSSE)