On December 3, Cloudflare moved its deadline to be fully post-quantum from 2029 to 2027. Part of the reason is quantum computing. The other part, in Cloudflare's words, is that "AI-accelerated research has given us a second reason" to hurry. They also say they "will mandate that critical vendors use post-quantum cryptography to protect our data."
If you sell software or services to companies that follow Cloudflare's lead, the question "are your connections post-quantum?" is coming. The first place to check is the easiest one: the TLS key exchange on your public endpoints.
What "post-quantum TLS" means in practice
Today the common post-quantum option for TLS 1.3 is a hybrid key exchange called X25519MLKEM768. It combines classic X25519 with ML-KEM, the NIST-standardised post-quantum algorithm, so the connection stays safe as long as either one holds. Most modern browsers already offer it. The question is whether your servers, load balancers and CDNs accept it.
Testing that is simple: start a TLS 1.3 handshake that offers only that group. If the server agrees, it supports post-quantum key exchange. If it refuses, it only speaks classical groups.
The script
Node 22 ships with OpenSSL 3.5, which supports ML-KEM, so this needs no extra tools:
// pq-check.mjs: does this server agree to post-quantum key exchange? // Offers ONLY the hybrid X25519MLKEM768 group in a TLS 1.3 handshake. // If the handshake succeeds, the server supports it. Node 22+ (OpenSSL 3.5+). // Usage: node pq-check.mjs example.com api.example.com:8443 ... import tls from "node:tls"; const GROUP = "X25519MLKEM768"; function check(target) { const [host, port = "443"] = target.split(":"); return new Promise((resolve) => { const socket = tls.connect({ host, port: Number(port), servername: host, ecdhCurve: GROUP, // offer nothing else minVersion: "TLSv1.3", rejectUnauthorized: false, // we're testing key exchange, not the certificate timeout: 8000, }); const done = (ok, detail) => { socket.destroy(); resolve({ target, ok, detail }); }; socket.once("secureConnect", () => done(true, `${socket.getProtocol()}, ${GROUP}`)); socket.once("timeout", () => done(false, "timed out")); socket.once("error", (e) => done(false, /HANDSHAKE_FAILURE/.test(e.code ?? "") ? "handshake refused: no post-quantum group" : e.code ?? e.message)); }); } if (!process.versions.openssl.match(/^3\.([5-9]|\d\d)/)) { console.error(`OpenSSL ${process.versions.openssl} is too old for ML-KEM. Use Node 22 or newer.`); process.exit(2); } const results = await Promise.all(process.argv.slice(2).map(check)); for (const r of results) console.log(`${r.ok ? "PQ " : "NO PQ"} ${r.target.padEnd(32)} ${r.detail}`); process.exitCode = results.every((r) => r.ok) ? 0 : 1; Pass it every hostname you expose: website, API, admin panel, webhooks endpoint, anything a customer's systems connect to.
node pq-check.mjs yourcompany.com api.yourcompany.com admin.yourcompany.com Testing it
I tested it against three local servers: one configured to accept X25519MLKEM768, one limited to classical groups, and one port with nothing listening:
PQ localhost:9441 TLSv1.3, X25519MLKEM768 NO PQ localhost:9442 handshake refused: no post-quantum group NO PQ localhost:9443 ECONNREFUSED It exits with code 1 if any target isn't post-quantum, so it works as a scheduled check or a CI step against your staging endpoints.
Reading the results
PQ on a site behind a CDN usually means the CDN supports it at the edge. That's the connection your users see, but it says nothing about the hop from the CDN to your origin server. Check the origin separately if you can reach it directly.
NO PQ on your own servers is normal today. The fix is usually an upgrade: a recent OpenSSL (3.5 or later), a recent web server or proxy, or a newer load balancer configuration. Many managed load balancers and CDNs already offer it as a setting.
Run it from a clean network. Corporate proxies and TLS-inspecting firewalls terminate the connection themselves, so you'd be testing the proxy, not the server. If every result looks the same, that's often why.
What it doesn't cover
Key exchange is only one part. Certificates and signatures are still classical almost everywhere, and Cloudflare's own plan treats those as a separate step. The script also doesn't check SSH, VPNs, internal service-to-service traffic or data encrypted at rest. But it gives you a factual answer to the first question a customer or auditor will ask, in about a second per host.
I'm Mayursinh, founder of Redlio Labs. We build custom software and add AI features and agents to it for mid-size companies. The script was tested on Node 22 (OpenSSL 3.5.9) against local TLS servers.



