Secret Key replacement
Joseph Oreste Bruni
jbruni at me.com
Wed Sep 2 18:06:51 CEST 2009
On Wednesday, September 02, 2009, at 08:18AM, "David Shaw" <dshaw at jabberwocky.com> wrote:
>
>No mass sign ability, but you can do some shell magic like:
>
>for i in (the keyids here)
>do
> gpg -u XXXXXX --lsign $i
>done
>
>This assumes you don't have a passphrase on the key (otherwise you'd
>have to type it multiple times as the shell loop ran), but no
>passphrases is also a common setup for automated use.
>
>David
To expand on David's script, the portion found in '(the keyids here)' can be extracted using the following:
$ gpg --with-colons --list-keys | grep -e '^pub' | cut -d: -f5
-Joe
More information about the Gnupg-users
mailing list