Probably the strongest evidence that there exists an costly break of 256-bit elliptic curves arrived yesterday, Google announced that root and intermediate CA certificates (read: "long-lived") that used the ECDSA P-256 curve would not be accepted following March 17, 2027. This is ~100 days (a extremely abbreviated timespan for item that affects "all CAs") and would power ~25% of all web traffic, which is not item one would do for no reason.
Speaking of long-lived keys, SSH and PGP keys are akin to base and intermediate CA certificates in that way. I don't think this is a "drop everything and do this now" situation, but the timeline of "next three months" seems prudent. Here's how to discover keys that you should upgrade on your system:
ssh-add -L | grep -E '^[^ ]*(nistp256|25519)' | grep -vE '^[^ ]*ml-?dsa'
This command finds P-256, ED25519, and Curve25519 keys that are registered with your SSH agent. The identical is true for PGP keys, if you have those on your system:
gpg -k --keyid-format lengthy | grep -E '^(pub|sub|sec|ssb)[#>]? +[^/ ]*(25519|256)' | grep -viE 'ky[0-9]|dil[0-9]|ml-?kem|ml-?dsa'
Here's what operating these commands returns on my device as of this morning:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINzmaKr8fHsDNPeht128GMbA+fe53pjYbPgS0V8dhjfK SSH
Seems that my PGP key is using RSA-4096 which is not a involvement for today. Okay, so let's upgrade the SSH key now. Unfortunately I'm not capable to generate quantum-safe SSH keys yet (ssh -Q key | grep -i mldsa is empty), Ubuntu 26.04.1 ships 10.2p1, but assistance for mldsa44-ed25519 in OpenSSH 10.6p2.
GitHub doesn't assistance ML-DSA for SSH yet (SSH ML-DSA is motionless an IETF draft). If GitHub supports mldsa44-ed25519 SSH keys at the period you're study this afterward use ssh-keygen -t mldsa44-ed25519 ..., alternatively continue alongside P-384 or RSA-4096.
You can create a P-384 elliptic curve SSH key akin so:
ssh-keygen -t ecdsa -b 384 -C '(comment)' (...options for encryption akin '-a 100')
Note that if you're generating a new key alongside a hardware key (-sk suffix) delight inspect that the generated key is actually using P-384, OpenSSH volition ignore the -b choice for hardware keys. From the OpenSSH -b manpage:
"ECDSA-SK, Ed25519 and Ed25519-SK keys have a fixed dimension and the -b emblem volition be ignored."
After you create the document locally, register the SSH key alongside your password manager and eliminate the records from your filesystem. Funnily enough, this is how I discovered that Bitwarden lone supports ED25519 and RSA SSH keys. It pains me to say that having an RSA-4096 key is a decent stop-gap at this item until you can upgrade to a quantum-safe key throughout the two your hardware key / password manager and services you're using the key with.
After you've generated and tested using your new key afterward don't ignore to unregister your now unused key alongside services and removing the key from your SSH agent, computer, etc.
Thank you to William Woodruff for reviewing this document previous to publication.
Thanks for reading!Send me an email or message on Mastodon or Bluesky. The finest way to assistance my penning is sharing links alongside your allies or colleagues. If you’d akin to be notified of future publications either subscribe via RSS or add your email to the newsletter: