Created
October 29, 2015 11:05
-
-
Save jinglemansweep/c1697198db0044400080 to your computer and use it in GitHub Desktop.
GPG Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
subkey_id="abc123" | |
gpg -a --export-secret-subkeys ${subkey_id}! > /tmp/subkey.gpg | |
gpg --homedir /tmp/gpg --import /tmp/subkey.gpg | |
gpg --homedir /tmp/gpg --edit-key <user-id> | |
# enter "passwd", change password, enter "save" | |
$ gpg --homedir /tmp/gpg -a --export-secret-subkeys ${subkey_id}! > /tmp/subkey.altpass.gpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment