GitHub's SSH is post-quantum. Its HTTPS isn't, and Node 22 can't tell you
How to test if a site uses post-quantum TLS (X25519MLKEM768) with openssl, curl and Node, and why github.com over HTTPS and Node 22 fail the check.
By Meet ModiRun ssh -v against GitHub today from OpenSSH 10 and the key exchange line says mlkem768x25519-sha256, a post-quantum hybrid. Open github.com over HTTPS from the same machine with the same OpenSSL and you get plain X25519. Offer it only the post-quantum group and GitHub hangs up with a handshake failure. Same company, same repos, two answers depending on whether your remote starts with git@ or https://.
So how do you test whether a site uses post-quantum TLS? With OpenSSL 3.5 or newer, run openssl s_client against it and read the line "Negotiated TLS1.3 group". If it says X25519MLKEM768, the key exchange is hybrid post-quantum. curl built on OpenSSL 3.5 prints the same name in its -v output. Node 24 reports it too. Node 22 does the post-quantum handshake just fine and then reports an empty object, which is the part that will bite anyone writing an audit script.
What is X25519MLKEM768
It is a TLS 1.3 key agreement group that runs two key exchanges at once and mixes the results: X25519, the elliptic curve exchange most HTTPS already uses, and ML-KEM-768, a key encapsulation mechanism built on lattices. FIPS 203, published by NIST on August 13, 2024, is the standard for ML-KEM, and its abstract says "At present, ML-KEM is believed to be secure, even against adversaries who possess a quantum computer." RFC 10024, published in August 2026 as a Standards Track document, defines three hybrids for TLS 1.3: X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. The first one is what nearly everything on the web uses.
The hybrid part is the point. If ML-KEM turns out to have a flaw nobody has found yet, the connection is still as strong as X25519 alone. If a large quantum computer shows up, X25519 falls and ML-KEM still holds. You pay for both and only need one of them to survive.
Why bother before such a computer exists: traffic recorded today can be decrypted later, once the key exchange can be broken. Cloudflare's post on origin key exchange calls this "harvest-now, decrypt-later". The key exchange is the piece that has to be quantum-safe now, because that is what a recording lets someone attack in ten years. Certificates only have to hold up for the length of a live connection.
How many sites support post-quantum TLS
Cloudflare Radar's post-quantum page was on the Hacker News front page on November 29, which is how this started. The page sat behind a bot challenge every time I tried to read it from a script, so the figures below are from Cloudflare's own blog posts, with their dates, not from the live page:
- Aug 13, 2024NIST publishes FIPS 203, the ML-KEM standard.
- Start of 2024Under 3% of client connections Cloudflare sees support post-quantum key agreement.
- Start of 2025Less than 1% of origin servers behind Cloudflare support it.
- Apr 8, 2025OpenSSL 3.5.0 ships with X25519MLKEM768 in its default key shares.
- Feb 27, 2026Cloudflare reports client support at over 60% and origins at about 10%, and adds an origin graph and a host test to Radar.
- Aug 2026RFC 10024 is published.
- Sep 8, 2026Cloudflare says over 12% of origins support it, 12.8% by its count, up from 0.5% in 2023.
The gap between those two numbers is the whole story. Browsers moved, because a handful of vendors ship them. Servers move one config and one OpenSSL upgrade at a time. Over 60% of connections arriving at Cloudflare offer post-quantum, and roughly one origin in eight behind it can accept it.
One detail from the February post worth knowing before you use Radar's host test: it runs Go's crypto/tls from Cloudflare's own addresses, so it only works on sites that accept connections from Cloudflare's egress ranges, and the origin scanner "tests for support rather than the origin server's specific preference". A server that supports the hybrid but prefers X25519 still counts.
How to check if a site uses post-quantum TLS with openssl
You need OpenSSL 3.5 or newer. Check with openssl version first. ML-KEM arrived in 3.5, so an older openssl will just negotiate X25519 everywhere and the test tells you nothing. Then:
$ openssl version
OpenSSL 3.5.5 27 Jan 2026 (Library: OpenSSL 3.5.5 27 Jan 2026)
$ echo | openssl s_client -connect www.cloudflare.com:443 \
-servername www.cloudflare.com 2>&1 | grep -E "Negotiated|Temp Key"
Negotiated TLS1.3 group: X25519MLKEM768
$ echo | openssl s_client -connect github.com:443 \
-servername github.com 2>&1 | grep -E "Negotiated|Temp Key"
Peer Temp Key: X25519, 253 bitsNote the two outputs do not even use the same label. A hybrid connection prints "Negotiated TLS1.3 group". A classical one prints "Peer Temp Key" and no group line at all, so grep for both or you will read a missing line as a failure of your grep.
To prove a server does not support the hybrid, rather than just preferring something else, offer it nothing else:
$ echo | openssl s_client -connect github.com:443 -servername github.com \
-groups X25519MLKEM768 2>&1 | grep -E "alert|Negotiated"
...:ssl/tls alert handshake failure:../ssl/record/rec_layer_s3.c:918:SSL alert number 40
Negotiated TLS1.3 group: <NULL>Alert 40 is handshake_failure: the server looked at the groups on offer and found none it would use. That is github.com on November 30, 2026.
Post-quantum TLS test with curl
curl built on OpenSSL 3.5 puts the group in its connection line, which makes a quick survey easy. I pointed it at the places a developer machine talks to every day:
$ for h in api.github.com raw.githubusercontent.com registry.npmjs.org pypi.org \
nodejs.org hub.docker.com registry-1.docker.io api.openai.com api.anthropic.com; do
echo "$h :: $(curl -sv -o /dev/null https://$h 2>&1 | grep -o 'SSL connection using.*')"
done
api.github.com :: SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256 / x25519 / id-ecPublicKey
raw.githubusercontent.com :: SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256 / X25519MLKEM768 / RSASSA-PSS
registry.npmjs.org :: SSL connection using TLSv1.2 / ECDHE-ECDSA-CHACHA20-POLY1305 / x25519 / id-ecPublicKey
pypi.org :: SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256 / X25519MLKEM768 / RSASSA-PSS
nodejs.org :: SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey
hub.docker.com :: SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey
registry-1.docker.io :: SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256 / x25519 / RSASSA-PSS
api.openai.com :: SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey
api.anthropic.com :: SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKeyThree things in there I did not expect. GitHub's web and API hosts are classical, while raw.githubusercontent.com, the host that serves file contents, is hybrid. Docker Hub's website is hybrid and the registry your docker pull talks to is not. And npm's registry negotiated TLS 1.2, three runs out of three. Forcing TLS 1.3 got a protocol_version alert back:
$ echo | openssl s_client -connect registry.npmjs.org:443 \
-servername registry.npmjs.org -tls1_3 2>&1 | grep -E "alert|Protocol"
...:tlsv1 alert protocol version:../ssl/record/rec_layer_s3.c:918:SSL alert number 70
Protocol: TLSv1.3The hybrid groups only exist in TLS 1.3, so a server that stops at 1.2 cannot do post-quantum key exchange at all. The response headers said server: cloudflare, which makes this odder, since Cloudflare's edge supports both. It may be a setting on that zone or something regional; I only had one machine to test from, and the cf-ray said Portland.
GitHub over SSH vs HTTPS
GitHub has moved its SSH side twice. In September 2025 its engineering blog announced sntrup761x25519-sha512 for SSH, and a changelog entry on September 22, 2026 added mlkem768x25519-sha256, for github.com and GitHub Enterprise Cloud with data residency "except for the U.S. region". The 2025 post said it plainly: "This only affects SSH access and doesn't impact HTTPS access at all." True, and it reads differently once you know the HTTPS side is still classical.
$ ssh -vv -o BatchMode=yes -p 443 git@ssh.github.com 2>&1 | grep -E "OpenSSH_|kex: algorithm"
debug1: OpenSSH_10.2p1 Ubuntu-2ubuntu3.8, OpenSSL 3.5.5 27 Jan 2026
debug1: kex: algorithm: mlkem768x25519-sha256So a git clone over SSH from a recent OpenSSH gets a post-quantum key exchange, and the same clone over HTTPS does not. If you care about harvest-now-decrypt-later for private repos, that is a reason to prefer SSH remotes today. It is also a thing GitHub can change on a Tuesday without a blog post, so check again before you rely on it.
One more trap here: git on Ubuntu does HTTPS through libcurl built on GnuTLS, not OpenSSL. With GIT_CURL_VERBOSE=1 it printed "SSL connection using TLS1.3 / ECDHE_RSA_AES_128_GCM_SHA256", which names no group. Use curl or openssl to check, not git.
Node.js post-quantum TLS: getEphemeralKeyInfo returns {}
This is the part I would have got wrong in an audit script. Node 22.23.5 bundles OpenSSL 3.5.9, so it offers X25519MLKEM768 by default, as a client and as a server. Ask it afterwards which key exchange it used:
// probe.mjs
import tls from "node:tls";
const host = process.argv[2];
const s = tls.connect({ host, port: 443, servername: host }, () => {
console.log(host, s.getProtocol(), s.getEphemeralKeyInfo());
s.end();
});# Node 22.23.5, OpenSSL 3.5.9
$ node probe.mjs www.cloudflare.com
www.cloudflare.com TLSv1.3 {}
$ node probe.mjs github.com
github.com TLSv1.3 { type: 'ECDH', name: 'X25519', size: 253 }
# Node 24.22.3, OpenSSL 3.5.9
$ node probe.mjs www.cloudflare.com
www.cloudflare.com TLSv1.3 { type: 'TLSGroup', name: 'X25519MLKEM768', size: undefined }On Node 22 the post-quantum connection, the good one, comes back as an empty object, while the classical one is fully described. A script that flags anything not named X25519MLKEM768 will flag every hybrid connection as unknown, and one that skips empty results will skip exactly the ones you were hoping to find. To prove Node 22 really had negotiated the hybrid, I forced it with ecdhCurve: 'X25519MLKEM768'. Cloudflare still returned {}, and github.com failed with ERR_SSL_SSL/TLS_ALERT_HANDSHAKE_FAILURE, the same alert 40 as openssl.
The fix is nodejs/node#64119 by Filip Skokan, merged on July 1, 2026. Its description is direct: getEphemeralKeyInfo() "currently returns an empty object for TLS 1.3 key agreement groups where OpenSSL does not expose a peer temporary key object, including ML-KEM and hybrid ML-KEM groups." It now returns type 'TLSGroup' with the group name and no size, "because Node cannot derive a meaningful single key size for PQ or hybrid groups." It shipped in Node 26.5.0 and in Node 24.19.0. It is semver-minor and it is not in the Node 22 changelog as of 22.23.5.
Python has the same blind spot from the other direction. On Python 3.14.4, the SSL socket gives you version() and cipher() and no method for the group, so the standard library cannot tell you either. Shell out to openssl or curl.
Does post-quantum TLS slow down the handshake
Cloudflare gives the size: an X25519MLKEM768 key share is 1,216 bytes, against 32 bytes for X25519. That pushes the ClientHello past what fits in one packet. I timed ten handshakes each way against www.cloudflare.com, using curl's --curves to force one group, and took TLS time as time_appconnect minus time_connect:
$ for c in X25519 X25519MLKEM768; do
for i in $(seq 1 10); do
curl -s -o /dev/null --curves $c -w "%{time_connect} %{time_appconnect}\n" https://www.cloudflare.com
done | awk '{tls=$2-$1; s+=tls; a[NR]=tls} END {n=asort(a); printf "n=%d median_tls_ms=%.1f mean_tls_ms=%.1f\n", n, a[int((n+1)/2)]*1000, s/n*1000}'
done
== X25519 n=10 median_tls_ms=9.0 mean_tls_ms=9.2
== X25519MLKEM768 n=10 median_tls_ms=9.1 mean_tls_ms=9.4A tenth of a millisecond at the median. That was a datacentre machine a few milliseconds from a Cloudflare location, so it says nothing about a phone on a weak signal, but it does say the maths is not the expensive part. The expensive part is a retry. When a client guesses a key share the server will not take, the server asks again with a HelloRetryRequest, which Cloudflare's post says "adds a full network round trip". Before Cloudflare started tailoring its first guess per origin, 52% of its connections to origins needed one. After, 3.7%.
How to enable post-quantum TLS on your own server
For most setups the answer is: upgrade, then stop touching it. OpenSSL 3.5's release notes say the default supported groups now "include and prefer hybrid PQC KEM groups" and the default key shares are "X25519MLKEM768 and X25519". I started a bare Node TLS server with only a key and a certificate, no group options, and connected with openssl:
# tls.createServer({ key, cert }), nothing else
listening v22.23.5 tls.DEFAULT_ECDH_CURVE auto
$ echo | openssl s_client -connect localhost:8443 2>&1 | grep Negotiated
Negotiated TLS1.3 group: X25519MLKEM768- Find out which OpenSSL your server actually links. The distribution's openssl binary and the library nginx, HAProxy or your runtime was built against can be different versions. Node ships its own copy, so its version is in process.versions.openssl.
- If you once pinned a group list (an ssl_ecdh_curve line, an ecdhCurve option, a -groups flag from a 2019 hardening guide), that list now locks the hybrid out. Delete it or put X25519MLKEM768 first.
- Make sure TLS 1.3 is on. The npm result above shows what happens otherwise.
- Check from outside with the openssl command from earlier, from a machine that is not on your network, after every load balancer or CDN change. The thing your users talk to is often not your server.
If you run something like a CI job that audits outbound connections, run it on Node 24.19 or newer, or call curl. On Node 22 it will tell you nothing useful. And if you are tightening transport policy in the browser, the CSP connect-src post is a reminder that the browser has more ways out than the ones your policy names.
The catch: only the key exchange is post-quantum
Look at the last field of every curl line above: id-ecPublicKey or RSASSA-PSS. That is the certificate, and it is classical everywhere, including on the hybrid connections. Post-quantum TLS on the web in 2026 means the session keys are protected against a future quantum computer. It does not mean the server's identity is. For recorded traffic that is the right order, because a forged signature only helps someone during the live connection. It is still worth saying plainly, since "post-quantum TLS" sounds like more than it is.
- Old middleboxes. Cloudflare's September post says some "can fail when receiving ClientHello messages split across multiple packets", and that around 0.34% of origins it scanned failed the handshake when offered a post-quantum key share first. Small, and very annoying if one of them is in front of your app.
- Compliance. GitHub's SSH changelog leaves its U.S. data residency region out of the ML-KEM rollout. Its 2025 post said the U.S. region could only use FIPS-approved cryptography. If you sell to anyone with a FIPS requirement, check what your FIPS module supports before switching groups on.
- Tools that cannot see it. Node 22, Python's ssl module and git on GnuTLS all connected fine in my runs and none of them could name the group. The check is only as good as the thing doing the checking.
- One machine, one day. Every result in this post came from one runner on November 30, 2026. GitHub, npm and Docker can change their edge config without telling anyone, in either direction.
How do I check if a website uses post-quantum TLS?
Run openssl s_client -connect example.com:443 -servername example.com with OpenSSL 3.5 or newer and look for "Negotiated TLS1.3 group: X25519MLKEM768". If you see "Peer Temp Key: X25519" instead, the connection used a classical key exchange. curl -v on OpenSSL 3.5 shows the same group name in its "SSL connection using" line.
What is X25519MLKEM768?
X25519MLKEM768 is a hybrid TLS 1.3 key exchange that combines classical X25519 with ML-KEM-768, the post-quantum key encapsulation mechanism NIST standardised as FIPS 203. The connection stays secure as long as either half holds. RFC 10024 defines it, OpenSSL 3.5 offers it by default, and over 60% of client connections Cloudflare sees support it.
Is X25519MLKEM768 quantum safe?
X25519MLKEM768 is designed to be quantum safe for the key exchange. NIST says ML-KEM is believed secure against attackers with a quantum computer, and the X25519 half covers the case where ML-KEM has an undiscovered weakness. The certificate that proves the server's identity is still classical, so authentication is not post-quantum yet.
Does OpenSSL support post-quantum TLS?
Yes, from OpenSSL 3.5.0, released on April 8, 2025. Its default key shares are X25519MLKEM768 and X25519, so clients and servers linked against it negotiate post-quantum TLS with no configuration whenever the other side supports it. ML-KEM is new in 3.5, so earlier releases do not offer the hybrid.
Does GitHub support post-quantum encryption?
For SSH, yes. GitHub offers mlkem768x25519-sha256 and sntrup761x25519-sha512 for git over SSH, except in its U.S. data residency region. Over HTTPS, no, as of November 30, 2026: github.com and api.github.com negotiated plain X25519 and rejected a post-quantum-only handshake. raw.githubusercontent.com did negotiate X25519MLKEM768.
Does Node.js support post-quantum TLS?
Yes, any Node release bundling OpenSSL 3.5, including Node 22.23.5, negotiates X25519MLKEM768 by default as client and server. Reporting it is the gap. On Node 22, tlsSocket.getEphemeralKeyInfo() returns an empty object for hybrid groups. Node 24.19.0 and 26.5.0 return type TLSGroup with the group name.
Is post-quantum TLS slower?
Barely, in my test. Ten handshakes each against www.cloudflare.com had a median of 9.0 ms with X25519 and 9.1 ms with X25519MLKEM768. The key share is bigger, 1,216 bytes against 32, and the real cost is a HelloRetryRequest round trip when the client guesses a group the server does not accept.
- Bringing more transparency to post-quantum usage, encrypted messaging, and routing security, Cloudflare
- Automatic Key Exchange: faster, post-quantum secure origin handshakes, Cloudflare
- Post-quantum encryption adoption, Cloudflare Radar
- RFC 10024: Post-Quantum Traditional (PQ/T) Hybrid Key Agreement Mechanisms for TLS 1.3, IETF
- FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard, NIST
- OpenSSL 3.5 release notes, OpenSSL
- tls: report negotiated TLS groups (#64119), Node.js on GitHub
- Node.js v24.19.0 release notes, Node.js
- Security improvements for SSH, GitHub
- Post-quantum security for SSH access on GitHub, GitHub
More Posts
Next.js 16.5 compiles 4.2x faster. This blog got 1.35x
Next.js 16.5 on a 92-page static site with 2 cores: cold Turbopack compile went from 7.0 s to 5.2 s with 21% less memory. Not 4x. Warm builds didn't move.
I made a post-quantum SSH key. GitHub never answered it
A post-quantum SSH key is one ssh-keygen command in OpenSSH 10.6. GitHub, GitLab, Bitbucket, Codeberg and sourcehut can't use it, and GitHub just hangs.
I painted over a 4-digit code and read it back from the pixels outside the box
Can you unredact an image? From lossy WebP, yes: I got a hidden 4-digit code back from pixels 96 px outside the box. JPEG with a 16 px margin leaked nothing.