Import all keys from signatures
David Shaw
dshaw at jabberwocky.com
Thu Mar 5 15:28:41 CET 2009
On Mar 5, 2009, at 4:48 AM, Dirk Zemisch wrote:
> Hi,
>
> i'm just had some trouble with my keyrings and after all recovery
> etc. a
> lot of keys I earlier received are gone.
>
> But a lot of them are named in the sigs of my own key. Is there a
> possibility to read out all key-IDs from the sigs and import the
> related
> keys from a keyserver? Maybe someone here wrote a script or so?
>
> I'm using WinXP and Ubuntu on the same keyring, so OS is not really
> relevant.
Sure. On the Ubuntu system, do this:
gpg --recv-keys `gpg --with-colons --list-sigs YOUR-KEY-ID-HERE |
egrep '^sig' | cut -d: -f5 | uniq`
David
More information about the Gnupg-users
mailing list