Skip to content

Commit

Permalink
Add an example of mass re-keying
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinpinto committed Dec 13, 2017
1 parent f7164c8 commit 72ac4f2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 72ac4f2

Please sign in to comment.