Skip to content

Instantly share code, notes, and snippets.

@joekiller
Created October 31, 2024 05:29
Show Gist options
  • Save joekiller/226419388a438fae3c8d823adb1508c9 to your computer and use it in GitHub Desktop.
Save joekiller/226419388a438fae3c8d823adb1508c9 to your computer and use it in GitHub Desktop.
GPG TLDR; commands

Expire and update keys

$> gpg --edit-key <key-id>
gpg> key 1
(for subkey, ssb, just expire for key 0, sec)
gpg> expire
(follow prompts)
gpg> save

You can list keys via:

gpg --list-secret-keys --keyid-format=long --list-options show-unusable-subkeys
# or get your .gitconfig configured key via
grep "signingkey" ~/.gitconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment