~derf / interblag / entry / Generating a New (ECDSA-521) GPG Key in Late 2026

I used to have an Ed25519 GPG key. As of December 2026, it looks like that's something I should change, so I decided to switch to ECDSA with NIST P-521 (aka secp521r1).

GPG / GnuPG only needs minor adjustments to actually be able to generate it:

  • In ~/.gnupg/gpg.conf, set cert-digest-algo SHA512 (mine was set to SHA256, which is apparently not compatible with secp521r1)
  • Run gpg --expert --full-gen-key
  • Select "ECC (sign and encrypt)" (which is the default on my machine)
  • Select "NIST P-521"
  • Proceed as usual

I've only been using the new key for a day, so I have no idea how older software fares with it when trying to verify my signatures or encrypt with this key. Let's fuck around and find out.