Don't rotate keys on an RSA rumor: six read-only checks for hour one, and a week of fixes that hold either way
No break of RSA-2048 has been published as of 29 November 2026. If a post claiming otherwise lands in your team chat, the correct amount of key rotation for that day is zero. This is part 1 of the Post-AI Cryptography
No break of RSA-2048 has been published as of 29 November 2026. If a post claiming otherwise lands in your team chat, the correct amount of key rotation for that day is zero.
This is part 1 of the Post-AI Cryptography series. It covers the first hour, which is read-only, and the first week, which holds only changes that are right in every scenario. Each command below was run on 29 November 2026 with OpenSSH 10.3p1 and OpenSSL 4.1.0, or comes from the documentation linked next to it, and the text says which.
Why zero
Rotation done in a hurry is its own incident. In Sectigo's 2026 survey, 61% of organizations had a certificate-related outage within 12 months. Rotate on a rumor and you take that outage risk and get nothing for it.
So agree on the trigger before the next headline. A rumor earns ten minutes of reading. A named claim that nobody has reproduced earns the read-only checks below. Independent reproduction at your key size, or an advisory from NIST, CISA, the NCSC or the BSI, starts the 24-hour runbook. One named person makes that call.
Hour one: six read-only checks
All of these were run on 29 November 2026 except the known_hosts line, which the ssh-keygen manual documents. The TLS checks need OpenSSL 3.5 or newer on your side.
# 1. Keys an account accepts, and host keys you trust
ssh-keygen -lf ~/.ssh/authorized_keys
ssh-keygen -lf ~/.ssh/known_hosts
# 2. Negotiated SSH key exchange (printed mlkem768x25519-sha256 for GitHub)
ssh -v [email protected] 2>&1 | grep "kex: algorithm"
# 3. TLS group. Expect "Negotiated TLS1.3 group: X25519MLKEM768".
openssl s_client -connect example.com:443 -groups X25519MLKEM768 -brief </dev/null
# 4. Static RSA key exchange. A completed handshake means the server accepts it.
# "Cipher is (NONE)" means it refused.
openssl s_client -connect example.com:443 -tls1_2 -cipher 'kRSA:@SECLEVEL=0' </dev/null
# 5. Key and signature algorithm of each certificate sent
openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null 2>/dev/null \
| awk '/-----BEGIN CERTIFICATE-----/{n++} n{print > ("chain" n ".pem")}'
for f in chain*.pem; do openssl x509 -in "$f" -noout -subject -issuer -text \
| grep -E 'subject=|issuer=|Public Key Algorithm|Signature Algorithm' | sort -u; echo; done
# 6. Keys an identity provider publishes. Use your issuer's jwks_uri.
curl -s https://www.googleapis.com/oauth2/v3/certs | jq -r '.keys[] | [.kid, .kty, (.alg // "-"), (.crv // "-"), (.use // "-")] | @tsv'
How to read the output:
-
Check 1 ends each line with the key type:
(RSA),(ED25519)or(ECDSA). - Check 4 matters most. In static RSA key exchange the client encrypts the session secret to the server's RSA key. If RSA were broken, that one key would open every recorded session, and no later fix would close them. Of the 72 well-known services I measured on 29 November 2026, 32 still completed this handshake.
- Check 5 prints certificates as sent, not a verified chain.
- Check 6 reads a JWKS, the list of public keys that verify an issuer's login tokens. I measured 56 login providers the same day, and 50 of them publish only RSA signing keys.
End the hour by writing two lists: every place where RSA carries a secret, and every key that signs something others trust. The first list goes first. A break would let an attacker read the past where the algorithm carried a secret, and fake the present where it signs. Signing keys can be replaced. Recorded traffic stays recorded.
The week: changes that are right in every scenario
None of this work depends on the rumor. NIST IR 8547, final since 27 October 2026, deprecates RSA at every key size after 2030 and disallows it after 2035.
SSH
SSH uses RSA keys only to sign. A break would therefore leave recorded sessions closed, and would let an attacker log in as you or pose as a server. So the work is on the accepting side: authorized_keys, known_hosts and your Git hosting accounts.
# New key. Run on 29 November 2026.
ssh-keygen -t ed25519 -a 64 -C "user@host 2026-11"
# Remove a host's old keys from known_hosts. From the ssh-keygen manual.
ssh-keygen -R host.example.com
The server lines below are documented in sshd_config(5), where a leading minus removes algorithms from the default set.
# /etc/ssh/sshd_config
KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,[email protected]
HostKey /etc/ssh/ssh_host_ed25519_key
HostKeyAlgorithms ssh-ed25519,[email protected]
PubkeyAcceptedAlgorithms -rsa-sha2-512,rsa-sha2-256,[email protected],[email protected]
CASignatureAlgorithms -rsa-sha2-512,rsa-sha2-256
Before you reload, delete any HostKey line that points at an RSA key, validate the file with sshd -t (from the sshd manual), and keep a second session open. The KexAlgorithms line locks out clients that lack these algorithms, so apply it one host group at a time.
TLS
RFC 10015 (July 2026) forbids static RSA key exchange in TLS 1.2, yet OpenSSL 4.1.0 still lists 13 such suites in its defaults. Turn it off, then put the hybrid group X25519MLKEM768 first. The nginx syntax is from its documentation, and the hybrid name needs OpenSSL 3.5 or newer.
ssl_protocols TLSv1.3; # the documented default is "TLSv1.2 TLSv1.3"
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1:secp384r1; # colon list since nginx 1.11.0
ssl_ciphers ECDHE+AESGCM:ECDHE+CHACHA20; # TLS 1.2 suites; no static RSA among them
Clients that still need TLS 1.2 can have it back on the protocol line, as long as the cipher allow-list stays. The hybrid handshake message is larger and breaks some middleboxes, so test from more than one network. Then run checks 3 and 4 again.
Certificates and tokens
Certbot has issued ECDSA keys by default since 2.0.0, but renewals keep the old key type. The flag comes from the Certbot guide:
certbot renew --key-type ecdsa --cert-name example.com --force-renewal
For login tokens signed with RS256, which is RSA with SHA-256, this is the order I would use:
- Add an ES256 or EdDSA key to the key set under a new
kid. - Wait one cache lifetime, until every verifier has fetched it.
- Start signing with the new key.
- Leave the RSA key published until the last RSA-signed token has expired.
- Take the RSA key out, and take RS256 off every verifier's allow-list.
Step 5 is the one that counts: a new key changes nothing while the old RSA key is still accepted.
Two fixes that do not fix it
- A bigger RSA key. RSA-4096 rests on the same assumption as RSA-2048, and NIST deprecates every key size on the same date.
- Calling a move from RSA to ECDSA post-quantum. It covers a break that affects only RSA, and ECDSA has the same end dates as RSA.
This post was drafted with AI assistance, and every command and number was checked against the original article and its data.
This is the command-line cut. The original has what a dev.to post cannot show: an interactive checklist of 55 steps across the first hour, week, quarter and year, which you filter by role, with a copy button on every command and your progress saved in the browser. It also has the Apache, HAProxy and AWS load balancer settings, and a table of eleven past emergencies with how long each fix really took: https://piszczek.pl/blog/rsa-break-playbook
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.