Permalink
Browse files

Add an example of mass re-keying

  • Loading branch information...
marvinpinto committed Dec 13, 2017
1 parent f7164c8 commit 72ac4f222becfe87ab472dd413b39c1608de39c6
@@ -634,7 +634,10 @@ Select `2 - unblock PIN` and follow the instructions.
websites like GitHub and Keybase as they don't appear to update
automatically via public PGP key servers.
1. Re-key any encrypted files with the new subkey.
1. Re-key any encrypted files with the new subkey. Example:
``` bash
$ for f in $(find . -name '*.gpg'); do gpg2 --batch --decrypt $f | gpg2 --encrypt -r MASTER_KEY_ID --armor --output tempfile.gpg && mv tempfile.gpg $f; done
```
1. Verify your work.

0 comments on commit 72ac4f2

Please sign in to comment.