diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-24 14:33:53 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-24 14:34:19 +0200 |
| commit | 3a5e7617c0040eccdf3935c9ec5a31a95c970cef (patch) | |
| tree | 99c71408742c62efa2e277898738fb1f7478fbc0 /README.md | |
| parent | d9fd9fe5e530853cb8794c23ac689be7edc1a75b (diff) | |
Rotate gpg key
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -42,3 +42,14 @@ brew install git-crypt cd ~/.rc git-crypt unlock ``` + +### GPG + +To rotate the GPG keys, after generating and backing up. + +- Get the new gpg key ID with `gpg --list-keys <GPG_KEY_ID>`. +- Get the new gpg key grip with `gpg --list-keys --with-keygrip <GPG_KEY_ID>` +- Update the `.gitconfig` signing key: <GPG_KEY_ID> +- Update the GPG key in the password store `.gpg-id` file with <GPG_KEY_ID> +- Update the sshcontrol config file with the authentication key of <GPG_KEY_GRIP> +- Update git-crypt with the new key: `git-crypt add-gpg-user <GPG_KEY_ID>` |
