Post-quantum readiness became a real task this week. On 2 December the NSA told the owners of US national security systems to move to post-quantum cryptography immediately, and eight large tech companies asked everyone else to speed up as well. Most of that work belongs to software vendors. However, a server admin can check five things today, and this post walks through each one with real output from our lab.

Nothing here means your server is broken today. US agencies said the new AI findings “do not present an immediate and widespread threat”. These checks tell you where you stand, so you can plan.

The short answer

  • SSH: if your OpenSSH is 9.0 or newer, sessions already use a post-quantum key exchange by default.
  • Websites: you need TLS 1.3 first. A post-quantum key exchange for TLS then needs OpenSSL 3.5 or newer, or a service such as Cloudflare in front.
  • Old keys: find RSA keys and certificates below 2048 bits and replace them now.
  • Login keys and certificates are not post-quantum anywhere yet. That part waits for software updates.

Why key exchange comes first

Encryption on a connection has two jobs. The key exchange agrees on a secret for the session, and signatures prove who the server is. An attacker can record your traffic today and keep it. If the key exchange is broken years later, they can then read that old traffic. The NSA says adversaries already collect encrypted data for this reason. So the key exchange is the urgent part.

Signatures are different. A forged signature is only useful at the moment of the connection, so recorded traffic does not help. Therefore signatures can wait for the next round of software.

What the NSA asked for

The NSA’s statement and its technical advisory are for national security systems, but the list works as a plan for any organisation:

  • make an inventory of where you depend on public-key encryption and signatures,
  • move TLS services to TLS 1.3 and switch on post-quantum settings where they exist,
  • install vendor updates that add the new algorithms,
  • isolate systems that cannot be upgraded,
  • design systems so the algorithm can be changed later.

The checks below cover the first three on a single server. We ran them on Ubuntu 24.04 on 4 December 2026. Run them only on servers you own or manage.

Check 1: SSH key exchange

ssh -V
ssh -Q kex | grep -i -E "mlkem|sntrup"

Our lab printed:

OpenSSH_9.6p1 Ubuntu-3ubuntu13.20, OpenSSL 3.0.13 30 Jan 2024
sntrup761x25519-sha512@openssh.com

The second line is a hybrid post-quantum key exchange. OpenSSH has used it by default since version 9.0. Version 9.9 added a second one based on ML-KEM, and version 10.0 made that the default. Ubuntu 24.04 ships 9.6, so it has the first and not the second. Both count as post-quantum.

If the command prints nothing, your OpenSSH is older than 9.0. In that case, update the operating system.

Next, confirm the server side offers it first:

sudo sshd -T | grep ^kexalgorithms

In our lab the list began with sntrup761x25519-sha512@openssh.com, so the server prefers it. Also note that OpenSSH 10.1 and later print a warning when a connection does not use a post-quantum key exchange. If you see that warning for one of your servers, that server is the one to update.

Check 2: TLS 1.3 on your website

Post-quantum key exchange for websites exists only in TLS 1.3, so that comes first. For a live site (replace example.com with your own domain):

openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | grep -E "^(New,|Server Temp Key)"

Our lab has no outside network, so we started a test server on the same machine and ran the same check against it:

Server Temp Key: X25519, 253 bits
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384

“TLSv1.3” is the good news here. “X25519” is the key exchange, and it is a classical one. That is what an Ubuntu 24.04 server gives today. If your site shows TLSv1.2 or lower instead, fix that first. Our Nginx configuration guide has the settings.

Check 3: can your OpenSSL do post-quantum key exchange?

openssl version
openssl list -kem-algorithms | grep -i mlkem

In our lab:

OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)

The second command printed nothing. So OpenSSL 3.0 on Ubuntu 24.04 has no ML-KEM, and a web server built on it cannot offer a post-quantum key exchange.

OpenSSL 3.5, released in April 2025, added ML-KEM and offers the hybrid group X25519MLKEM768 by default. Debian 13 ships it. On such a system the same command lists that group, and Nginx’s documentation shows this setting for it:

ssl_protocols TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519;

We took that from the Nginx blog and did not run it, because our lab has OpenSSL 3.0. To test a site from a machine with OpenSSL 3.5, the Nginx blog gives this command:

openssl s_client -groups "X25519MLKEM768" -tls1_3 -connect example.com:443

If the answer includes “Negotiated TLS1.3 group: X25519MLKEM768”, the site is ready.

So what should you do on Ubuntu 24.04? Do not build your own OpenSSL for a production server. Instead, plan the move to a release that ships OpenSSL 3.5, or put a service in front that already does this. Cloudflare, for example, has had post-quantum key exchange on by default for all customers since March 2023.

Check 4: find old and weak keys

This is the check with a result you can act on today. First, the server’s own SSH host keys:

for f in /etc/ssh/ssh_host_*_key.pub; do ssh-keygen -l -f "$f"; done
256 SHA256:Gyqqp2eiNeoqD9VmptPBse5cmekD6M3wGhqo/RQSLS4 root@vm (ECDSA)
256 SHA256:dsuX0kGL3BaRK8C6Fzu2GuWwU1pEf+xFILjHxqfZYKo root@vm (ED25519)
3072 SHA256:xe+IyfXtB6Ohb4QqeZWgcE3h+SXYlTsW/rVcQ9vOS8o root@vm (RSA)

The first number is the size. An RSA host key below 2048 needs replacing.

Then the certificates. This loop prints the key type and size of every certificate in a folder:

for c in /etc/ssl/certs-own/*.crt; do printf "%s: " "$c"; openssl x509 -in "$c" -noout -text | grep -E "Public Key Algorithm|Public-Key" | tr -s ' ' | tr '\n' ' '; echo; done

We ran it on a lab folder with three test certificates we made, one of them deliberately weak:

certs/api.crt:  Public Key Algorithm: id-ecPublicKey  Public-Key: (256 bit)
certs/old-vpn.crt:  Public Key Algorithm: rsaEncryption  Public-Key: (1024 bit)
certs/site.crt:  Public Key Algorithm: rsaEncryption  Public-Key: (2048 bit)

The 1024-bit certificate is the one to replace now. Researchers factored an 896-bit RSA number this year, so 1024 bits is no longer a safe margin. Also check each user’s login keys with ssh-keygen -l -f ~/.ssh/authorized_keys, as our RSA-2048 fact-check shows.

Check 5: write the inventory down

Post-quantum readiness is mostly knowing what you have. Make a short table with one row per system and five columns: the system, what it uses (SSH, TLS, VPN, disk encryption, code signing), the algorithm and key size, who supplies the software, and whether an update with post-quantum support exists. Include the things people forget: VPN appliances, load balancers, backup tools, payment terminals and old devices that never get updates.

Then mark each row. Anything that carries data you must keep secret for many years goes to the top. Anything that cannot be upgraded goes on a replacement list. This table is also what an auditor or a large customer will ask for.

What you cannot fix yet

SSH login keys and website certificates still use RSA or elliptic curves. OpenSSH says it will add post-quantum signature support in the future, and there is no “store now, decrypt later” risk for signatures. So there is nothing to change there today, apart from removing weak keys.

In addition, keep some perspective on the new algorithms. Anthropic’s papers this week described a theoretical attack on the maths behind ML-KEM. Reviewers called the computing power it needs “galactic”, and Cloudflare wrote that deployed systems are not affected. The hybrid approach helps here: it combines a classical and a post-quantum method, so an attacker has to break both.

Free check: our website safety check grades your site’s HTTPS and security headers from the outside in 30 seconds.

Related guides

Sources

Want a second pair of eyes on your servers? Our Linux server hardening audit reviews SSH, accounts, sudo rules, exposed services and permissions. The SSH Hardening Pack (₹99) has tested sshd_config drop-ins and a guided install script that refuses to lock you out.

Post author avatar

Bhaskar Soni

Bhaskar Soni is a Security Engineer and the founder of Youngster Company, based in Ahmedabad, Gujarat. He works hands-on with Linux server hardening, vulnerability assessment and penetration testing (VAPT), ISO 27001 compliance and OSINT investigations. He writes practical, tested guides for IT professionals and Indian businesses, and every article on this site is written or reviewed by him.

Leave a Reply