Skip to main content

RSA Is Not Broken, but It Is Time to Go Post-Quantum

11 min read

Move my servers to post-quantum

We check SSH, TLS and VPN on every server, turn on hybrid key exchange and plan the upgrades.

No one has published a break of RSA, yet in three days the US government, eight tech companies and Cloudflare all said to move to post-quantum cryptography now. What happened, what the new algorithms are, and how to use them for SSH, nginx, VPNs and encrypted files on Ubuntu, with tested commands.

What Happened to RSA This Week

Nobody has published a break of RSA. That is the short answer to the question many people asked this week, and it was still true on the evening of December 3, 2026. What did change, within three days, is the advice from the people who would know.

The story began in the last week of November with a rumor on social media that a frontier AI lab had quietly cracked RSA-2048. No paper, no factored number and no named source came with it.

On November 30, Anthropic published a set of papers about lattice problems. Lattices are the mathematics behind the new post-quantum standards, so the papers concern the replacement for RSA and not RSA itself. An independent group of cryptographers, the Cryptography Incident Review Group, reviewed the work and called the cost of the attack galactic. It falls far short of breaking the NIST standards, and the group's advice was to keep migrating, prefer hybrids and stay able to swap algorithms.

On December 2, the Office of the National Cyber Director, the NSA and CISA issued a joint statement. It says US AI companies have disclosed discoveries that affect the security of some cryptography currently in use, and it does not say which. The agencies wrote that the advances "do not present an immediate and widespread threat" and asked industry and government to upgrade quickly. The same day Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle signed a joint statement backing a move to the NIST post-quantum standards as soon as possible.

On December 3, Cloudflare moved its target for being fully post-quantum from 2029 to 2027. Its post names AI-accelerated research as a second reason to hurry, next to quantum computers, and says every system that depends on RSA or elliptic curves has to move.

So the public record holds zero published breaks of RSA-2048. The largest RSA number factored in public is RSA-896, completed in September 2026 with known methods on a large GPU fleet, and its author states that it does not affect deployed RSA-2048 keys. The record also holds an unusual chorus of governments and vendors saying the same thing in the same week. Something was disclosed to them that the rest of us have not seen. The sensible reading is that RSA and elliptic curves have less time left than the old plans assumed.

Why Move If Nothing Is Broken

The first reason is that encrypted traffic can be recorded today and opened later. Anyone who stores your VPN, SSH or HTTPS traffic now can decrypt it on the day the key exchange falls, whether a quantum computer or a mathematical shortcut does it. Data that must stay private for years needs a post-quantum key exchange now, and that is why key exchange is the first thing every vendor upgrades.

The second reason is the calendar. NIST's final transition plan, published on October 27, 2026, deprecates RSA and elliptic-curve algorithms after 2030 and disallows them after 2035. The UK's guidance asks for the highest priority work to be finished by January 1, 2031. Those dates were set before this week and may now turn out to be generous.

The third reason is that much of the work is already done for you. On a current Ubuntu release, post-quantum key exchange is on by default in SSH and TLS. For many servers the job is to check, remove an old setting or two, and plan the machines that are too old.

The New Algorithms in Plain Words

NIST published three post-quantum standards in August 2024.

StandardNameWhat it doesWhere you meet it
FIPS 203ML-KEMAgrees on an encryption keyTLS and SSH key exchange
FIPS 204ML-DSASigns and verifiesCertificates, tokens, signed software
FIPS 205SLH-DSASigns with hash functions onlyA conservative fallback for signatures

None of them needs special hardware. They are ordinary software, somewhat larger on the wire than what they replace.

In practice you will mostly meet them as hybrids. The TLS group X25519MLKEM768 runs the classical X25519 exchange and ML-KEM-768 together and mixes both results into the session key. An attacker has to break both to read the traffic. This is why the lattice papers caused no panic among people who run servers. If ML-KEM ever weakens, the classical half still stands, and if elliptic curves fall, ML-KEM still stands.

What Ubuntu Already Gives You

We checked stock containers of both LTS releases on December 3, 2026.

Ubuntu 26.04Ubuntu 24.04
OpenSSL3.5.53.0.13
ML-KEM, ML-DSA and SLH-DSA in OpenSSLYesNo
OpenSSH10.2p19.6p1
Default SSH key exchangemlkem768x25519-sha256sntrup761x25519-sha512
nginx1.28.31.24.0
Hybrid TLS group X25519MLKEM768On by defaultNot available

Three commands show where a server stands.

openssl version
openssl list -kem-algorithms | grep -i mlkem
ssh -Q kex | grep -E "mlkem|sntrup"

On 26.04 the second command lists ML-KEM-512, 768 and 1024 and the hybrid groups. On 24.04 it prints nothing, because OpenSSL 3.0 has no ML-KEM.

SSH

SSH is the easy win, since OpenSSH has shipped a post-quantum hybrid as its default since version 9.0. To see what a connection really uses, ask the client.

ssh -v user@server true 2>&1 | grep "kex: algorithm"

Between two 26.04 machines the answer is mlkem768x25519-sha256. A 24.04 client reaches the same server with sntrup761x25519-sha512@openssh.com, which is also a post-quantum hybrid. A name like curve25519-sha256 means one side is old or has a restricted list. OpenSSH 10.1 and newer print a warning on such connections.

Once you know your clients are recent, you can make the server refuse everything else.

echo "KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com" | sudo tee /etc/ssh/sshd_config.d/10-pq-kex.conf
sudo sshd -t && sudo systemctl reload ssh

We tested this on 26.04. A 24.04 client still connected, and a client forced to curve25519-sha256 was refused with "no matching key exchange method found". The third name in the list matters, because OpenSSH 9.6 knows the sntrup hybrid only under its older name. Keep your current session open while you test a new one, and check deploy tools, backup jobs and monitoring agents first. Some of them carry their own SSH library and are older than they look.

Host keys and user keys are a separate matter. OpenSSH 10.2 has no post-quantum key types yet, so they stay Ed25519 or RSA for now. That is authentication, and breaking it later does not expose sessions that have already ended.

TLS for Web Servers

On Ubuntu 26.04 we installed nginx, gave it an ordinary certificate and changed nothing else. Both test clients negotiated the hybrid group.

echo | openssl s_client -connect example.com:443 2>/dev/null | grep "Negotiated TLS1.3 group"
curl -sv https://example.com/ 2>&1 | grep "SSL connection"

The first prints Negotiated TLS1.3 group: X25519MLKEM768. The second shows TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768. Run both from a 26.04 machine, since the client needs OpenSSL 3.5 as well.

When a server on 3.5 does not negotiate the hybrid, the cause is nearly always a curve list copied from an old hardening guide. Put the hybrid first and keep the classical curves behind it.

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;

The fallback matters on a public site. When we set the list to X25519MLKEM768 alone, a classical client was turned away with a handshake failure. A list with only the hybrid suits internal services where you control every client.

Apache, HAProxy, Postfix and the other TLS servers on 26.04 use the same OpenSSL, so the same check applies to them. Our guide to post-quantum TLS on origin servers covers other distributions and the Cloudflare side.

On Ubuntu 24.04 the system OpenSSL cannot do this at all. Either a proxy that speaks the hybrid group goes in front of the server, or the server gets a date for its upgrade to 26.04.

Certificates and Signatures

Key exchange protects what is sent. Certificates prove who is on the other end, and this is the part Cloudflare now wants done two years sooner. OpenSSL 3.5 can already issue post-quantum certificates.

openssl genpkey -algorithm ML-DSA-65 -out mldsa.key
openssl req -x509 -new -key mldsa.key -out mldsa.crt -days 90 \
  -subj "/CN=internal.example.com" -addext "subjectAltName=DNS:internal.example.com"
openssl x509 -in mldsa.crt -noout -text | grep "Signature Algorithm"

The price is size. Our self-signed ML-DSA-65 certificate came to 7,546 bytes in PEM form, against 607 bytes for an ECDSA P-256 one.

nginx accepts two certificates in one server block, and we tested that pairing. A client with OpenSSL 3.5 received the ML-DSA certificate, and a client that accepts only ECDSA signatures received the ECDSA one from the same port.

ssl_certificate     /etc/ssl/internal/ecdsa.crt;
ssl_certificate_key /etc/ssl/internal/ecdsa.key;
ssl_certificate     /etc/ssl/internal/mldsa.crt;
ssl_certificate_key /etc/ssl/internal/mldsa.key;

This is useful today for internal APIs, service-to-service TLS and anything else signed by your own certificate authority. Public websites have to wait for certificate authorities and browsers. Cloudflare plans to issue its first post-quantum certificates in early 2027, for free, to hostnames proxied through its network.

Encrypting Files and Folders

A folder of private files on a laptop or a server is in better shape than TLS. Tools that lock data with a password use symmetric ciphers such as AES-256, and neither quantum computers nor this week's news put those at risk. The same goes for disk encryption with LUKS and for backups that restic or BorgBackup encrypt with a passphrase. Public keys are where the choice of tool matters.

For a folder you open yourself, gocryptfs is a good fit. It encrypts each file separately with AES-256-GCM, needs no space reserved in advance and works well in a folder that syncs to the cloud. We ran these steps on Ubuntu 26.04 with gocryptfs 2.6.1.

sudo apt install gocryptfs
mkdir ~/encrypted_data ~/unlocked_folder
gocryptfs -init ~/encrypted_data
gocryptfs ~/encrypted_data ~/unlocked_folder

The init step asks for a password and prints a master key. Keep that key somewhere safe, since it is the only way back in if the password is lost. While the folder is mounted, anything you put in ~/unlocked_folder is written encrypted into ~/encrypted_data, file by file and with scrambled names. Lock it when you are done, and the unlocked folder is empty again.

fusermount -u ~/unlocked_folder

Sending a file to someone else, or encrypting backups so that only another server can read them, needs a public key. That is where post-quantum keys come in. age, a small file encryption tool, added them in version 1.3. Version 1.4.0, released on December 1, 2026, makes them the default and warns about older keys, and its notes say the original X25519 keys are no longer up to keeping files confidential for a long time. Ubuntu 26.04 still packages age 1.2.1, so the new keys need the release from the project's GitHub page. We did not test that build here, and the commands follow the project's documentation.

age-keygen -o backup.key                # a post-quantum key by default on age 1.4
age-keygen -y backup.key > backup.pub   # the public key, starting with age1pq1
tar czf - reports | age -R backup.pub -o reports.tar.gz.age
age -d -i backup.key reports.tar.gz.age | tar xzf -

A post-quantum age key starts with age1pq1 and is far longer than an old one. Files encrypted with a password through age -p need no action, according to the project. Files encrypted to an older key or to an SSH key should be re-encrypted to a new one, although a copy an attacker has already recorded stays at risk.

Where Else It Fits

WireGuard does its key exchange with Curve25519, and the protocol includes an optional pre-shared key that is mixed into every handshake for post-quantum resistance. Adding one is a small change.

wg genpsk | sudo tee /etc/wireguard/peer1.psk >/dev/null
sudo chmod 600 /etc/wireguard/peer1.psk

Put the same value as PresharedKey in the [Peer] section on both ends, one key per pair of peers, and move it over a channel you trust.

A site behind Cloudflare already has post-quantum encryption between visitors and Cloudflare, which has been the default since 2022. The hop from Cloudflare to your origin uses it when the origin offers it, and Cloudflare Tunnel covers origins that cannot.

What Comes Next

The statements of December 2 name no algorithm, so more detail is likely to follow from the agencies or from the companies that signed. Cloudflare has published dates, with post-quantum certificates in the first quarter of 2027, post-quantum TLS, SSH and tokens on its own interfaces in the second, and every product by the end of that year. The other signers have not published dates yet.

For a team that runs its own servers, a workable order is this. Make a list of where RSA and elliptic curves are used, which usually means TLS, SSH, VPNs, internal certificates and signed tokens. Switch on hybrid key exchange wherever it is only a setting, since that closes the record-now problem. Give every host that is stuck on OpenSSL 3.0 an upgrade date. Take pinned curve and cipher lists out of your configuration templates so the next change is one line. Leave public certificates until your CA and CDN offer post-quantum ones, and try ML-DSA on an internal service in the meantime.

None of this is a reason for alarm. The algorithms are standardized, they ship in the current Ubuntu LTS, and most of the switch is configuration.

If you would like your servers checked and moved to post-quantum key exchange, our security and compliance work covers it.

Sources

Frequently asked questions

Has RSA-2048 been broken?

No break of RSA-2048 has been published as of December 3, 2026. The rumor that an AI lab had cracked it spread in late November without a paper or any evidence. The largest RSA number factored in public is RSA-896, done in September 2026 with known methods, and its author says the work does not affect deployed RSA-2048 keys. What changed is the official advice. The US government, eight large tech companies and Cloudflare now say to move to post-quantum cryptography quickly.

What did the US government say about cryptography on December 2, 2026?

The Office of the National Cyber Director, the NSA and CISA published a joint statement saying that US AI companies have disclosed discoveries that affect the security of some cryptography currently in use. The statement does not name the algorithms. The agencies assess that the advances do not present an immediate and widespread threat, and they call on industry and government to upgrade digital infrastructure quickly.

What is post-quantum cryptography?

Post-quantum cryptography is a set of public-key algorithms built on mathematical problems that quantum computers are not known to solve quickly, unlike RSA and elliptic curves. NIST published three standards in August 2024. ML-KEM (FIPS 203) agrees on encryption keys, ML-DSA (FIPS 204) makes digital signatures, and SLH-DSA (FIPS 205) is a hash-based signature scheme kept as a conservative alternative. It runs on ordinary servers and needs no quantum hardware.

Does Ubuntu 26.04 support post-quantum cryptography out of the box?

Yes. A stock Ubuntu 26.04 container we tested on December 3, 2026 shipped OpenSSL 3.5.5 with ML-KEM, ML-DSA and SLH-DSA, OpenSSH 10.2p1 and nginx 1.28.3. SSH connections used the hybrid mlkem768x25519-sha256 key exchange by default, and nginx negotiated the hybrid X25519MLKEM768 group with both openssl s_client and curl without any configuration change.

Does Ubuntu 24.04 support post-quantum TLS?

Not with its system packages. Ubuntu 24.04 ships OpenSSL 3.0.13, which has no ML-KEM, so nginx, Apache and curl built against it cannot negotiate a post-quantum TLS group. SSH is covered, because OpenSSH 9.6 on 24.04 uses the hybrid sntrup761x25519-sha512 key exchange by default. For TLS, put a proxy that supports the hybrid group in front of the server or plan the upgrade to 26.04.

How do I check whether an SSH connection uses post-quantum key exchange?

Run ssh -v user@server true 2>&1 | grep "kex: algorithm" and read the algorithm name. mlkem768x25519-sha256 and sntrup761x25519-sha512 are the two post-quantum hybrids. A name such as curve25519-sha256 or ecdh-sha2-nistp256 means the session is not protected against later decryption. OpenSSH 10.1 and newer also print a warning when a connection does not use a post-quantum key exchange.

How do I enable post-quantum TLS in nginx on Ubuntu?

On Ubuntu 26.04 it is already on, because OpenSSL 3.5 offers the X25519MLKEM768 hybrid group by default. The usual reason it is missing is an old ssl_ecdh_curve line that lists only classical curves. Change it to ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1; and reload nginx. Keep the classical curves in the list on public sites, since a server that offers only the hybrid group refuses older clients with a handshake failure.

Can I use a post-quantum TLS certificate today?

Yes for internal services, where you run your own certificate authority and control both ends. OpenSSL 3.5 on Ubuntu 26.04 creates ML-DSA keys and certificates, and nginx can serve an ML-DSA certificate next to an ECDSA one so that each client gets the one it understands. For public websites the certificates wait on certificate authorities and browsers. Cloudflare says it plans to issue its first post-quantum certificates in early 2027.

Read how we handle it in Cybersecurity.