Secret Key replacement

Joseph Oreste Bruni jbruni at
Wed Sep 2 18:06:51 CEST 2009

On Wednesday, September 02, 2009, at 08:18AM, "David Shaw" <dshaw at> wrote:
>No mass sign ability, but you can do some shell magic like:
>for i in (the keyids here)
>   gpg -u XXXXXX --lsign $i
>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.

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


More information about the Gnupg-users mailing list