hn.today

How to find and upgrade SSH and PGP keys using P‑256, ED25519, and Curve25519

sethmlarson.dev263 points104 comments
Screenshot of How to find and upgrade SSH and PGP keys using P‑256, ED25519, and Curve25519

The guidance treats Google’s decision to stop accepting root and intermediate certificate authority certificates using ECDSA P-256 after March 17, 2027, as a strong signal that long-lived 256-bit curve keys may need replacing. Because SSH and PGP keys can remain in use for years, it recommends checking them soon, while stressing that this is not an immediate emergency. It supplies shell commands to scan keys held by an SSH agent and keys listed by GPG, filtering for P-256, ED25519, and Curve25519 while excluding certain post-quantum algorithms. In the author’s own check, an ED25519 SSH key appeared, while the PGP key was RSA-4096 and considered acceptable for now.

For SSH, the preferred future option is a post-quantum ML-DSA/Ed25519 key, but support was unavailable in the author’s OpenSSH version and on GitHub at the time of writing. Until services and tools support it, the recommended alternatives are P-384 or RSA-4096. The instructions show how to create a P-384 key and warn that the key-length option does not work for hardware-backed keys, so users must verify what was generated. They also note that password managers may restrict supported key types. After testing a replacement, users should store it securely, remove the private key file, and retire the old key from services, agents, and devices.

Read on sethmlarson.dev104 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

Tailscale: Post-Quantum Cryptography

Tailscale: Post-Quantum Cryptography

Post-quantum cryptography protects key exchange from future quantum attacks, including “harvest now, decrypt later” attempts; hybrid exchange combines classical and post-quantum algorithms for protection if either remains secure. WireGuard uses fixed handshake algorithms, so adding post-quantum protection requires protocol changes and endpoint updates. (tailscale.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.