summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
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>`