Enable post-quantum TLS on Node.js (X25519MLKEM768)
Choose your server or platform. You get the version check, the configuration, and how to verify that browsers now negotiate X25519MLKEM768.
Which version do you run?
1. Check your version
node -p process.versions.openssl
2. Configure
const https = require('node:https');
https.createServer({
key, cert,
minVersion: 'TLSv1.2',
ecdhCurve: 'X25519MLKEM768:X25519:prime256v1',
}, app).listen(443);
The default ecdhCurve 'auto' already includes the hybrid group; old snippets like ecdhCurve: 'prime256v1' remove it.
An explicit group or curve list copied from an old hardening guide silently removes the hybrid group. Delete it, or keep X25519MLKEM768 first as shown.
4. Verify
openssl s_client -connect example.com:443 -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -i group
If nginx, a load balancer or a CDN terminates TLS in front of this service, browsers never talk TLS to it directly: configure that layer instead.
After the change
Run a free check of your domain below. Grade A means TLS 1.3 with hybrid post-quantum key exchange. The result page can also check every subdomain listed in public certificate logs, so you can see which hosts still need the same change.