How to fetch all signing keys?

Marc Mutz mutz@kde.org
Sun Jun 2 16:02:03 2002


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 02 June 2002 03:42, Sebastian D.B. Krause wrote:
> When I type "gpg -kvv" there are many signatures marked with "[User
> id not found]". How can I say GnuPG to try to fetch all these
> unknown keys from a keyserver (I've alreays set "keyserver" in the
> options file)? Do I need a script (where can I find one?) or can
> handle GnuPG this itself?
<snip>

You wouldn't want to use this recursively, since chances are that you=20
habe a key from the stongly connected set and that means you will end=20
up with 11,000+ keys after 13 or so rounds of this procedure ;-)

gpg --with-colons --no-expensive-trust-checks --list-sigs | \
  grep 'User id not found' | \
  cut -d: -f5 | sort | uniq | \
  while read KEYID; do
    gpg --recv-keys 0x$KEYID
  done

Marc

=2D --=20
Marc Mutz <mutz@kde.org>
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE8+iL03oWD+L2/6DgRAlLQAJ42MwYbGGcuaEcn13mPGqw8+lSRjgCeNhpm
gyoOEhqTTf2RPGpSVCXxyL4=3D
=3DZaUx
=2D----END PGP SIGNATURE-----