summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-24 14:33:53 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-24 14:34:19 +0200
commit3a5e7617c0040eccdf3935c9ec5a31a95c970cef (patch)
tree99c71408742c62efa2e277898738fb1f7478fbc0 /README.md
parentd9fd9fe5e530853cb8794c23ac689be7edc1a75b (diff)
Rotate gpg key
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 98dc7dd..d482696 100644
--- a/README.md
+++ b/README.md
@@ -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>`