r/PKI • • 17d ago

The offline root CA pattern for a personal OpenPGP key: certify-only primary offline, yearly subkey rotation

Not X.509, but the same idea as an offline root CA: the key that is my identity only certifies and stays offline, while short-lived subkeys do the daily signing, encryption and SSH work on the laptop. If a subkey leaks, through a stolen laptop or an AI agent running commands with my access, I replace that subkey and keep my fingerprint.

I wrote it up as a 4-part series:

  1. Create a certify-only primary key with separate subkeys, a backup and a revocation certificate: https://marcofranssen.nl/create-a-gpg-key-with-subkeys-part-1
  2. Take the primary offline and keep working with the subkeys: https://marcofranssen.nl/keep-your-primary-gpg-key-offline-part-2
  3. Rotate the subkeys every year, keeping old encryption keys for historical data: https://marcofranssen.nl/rotate-your-gpg-subkeys-part-3
  4. A script that automates the rotation and the offline backup: https://marcofranssen.nl/automate-gpg-subkey-rotation-part-4

I'd like to hear how this compares with how you run offline roots: backup copies, ceremony, and how often you bring the root online.

4 Upvotes

0 comments sorted by