[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: Off Topic: Getting PGP and GnuPG Public Keys



> I've noticed a fair number of list members use GnuPG or PGP and I got
> tired of manually trying to find a keyserver that had the poster's
> public key. I know they are supposed exchange keys, but this seems very
> hit or miss. So I wrote the little script below. It includes several

(..)

> I hope someone finds this useful.

Thanks. It was a tad long, but.. thanks. Nice list of keyservers.

>
> if gpg --keyserver tickets.rutgers.edu --recv-key $1
> then
>    echo tickets.rutgers.edu
>    exit
> fi
>
> if gpg --keyserver pgp.mit.edu --recv-key $1
> then
>    echo pgp.mit.edu
>    exit
> fi
>
> if gpg --keyserver keyserver.veridis.com  --recv-key $1
> then
>    echo keyserver.veridis.com
>    exit
> fi
>
> if gpg --keyserver pgp.keyserver.ch  --recv-key $1
> then
>    echo pgp.keyserver.ch
>    exit
> fi
>
> if gpg --keyserver pgp.surfnet.nl --recv-key $1
> then
>    echo pgp.surfnet.nl
>    exit
> fi
>
> if gpg --keyserver www.stinkfoot.org --recv-key $1
> then
>    echo www.stinkfoot.org
>    exit
> fi
>
> if gpg --keyserver pgp.es.net --recv-key $1
> then
>    echo pgp.es.net
>    exit
> fi
>
> if gpg --keyserver pgp.rediris.es --recv-key $1
> then
>    echo pgp.rediris.es
>    exit
> fi
>
> if gpg --keyserver pgp.nic.ad.jp --recv-key $1
> then
>    echo pgp.nic.ad.jp
>    exit
> fi
>
> if gpg --keyserver pgp.uk.demon.net --recv-key $1
> then
>    echo pgp.uk.demon.net
>    exit
> fi
>
> if gpg --keyserver pgp.zdv.uni-mainz.de --recv-key $1
> then
>    echo pgp.zdv.uni-mainz.de
>    exit
> fi
>
> if gpg --keyserver keyserver.linux.it --recv-key $1
> then
>    echo keyserver.linux.it
>    exit
> fi
>
> if gpg --keyserver keys.iif.hu --recv-key $1
> then
>    echo keys.iif.hu
>    exit
> fi
>
> if gpg --keyserver pgp.eteo.mondragon.edu --recv-key $1
> then
>    echo pgp.eteo.mondragon.edu
>    exit
> fi
>
> echo exiting failure

#!/bin/bash
#
# Thanks to George Shaffer
#
if [ "$1" == "" ];then
  echo "Enter a key as argument!"
  exit 1
fi

echo 'tickets.rutgers.edu
tickets.rutgers.edu
pgp.mit.edu
keyserver.veridis.com
pgp.keyserver.ch
pgp.surfnet.nl
www.stinkfoot.org
pgp.es.net
pgp.rediris.es
pgp.nic.ad.jp
pgp.uk.demon.net
pgp.zdv.uni-mainz.de
keyserver.linux.it
keys.iif.hu
pgp.eteo.mondragon.edu'|while read keyserver;do

if gpg --keyserver $keyserver --recv-key $1
then
   echo Found key at $keyserver
   exit
fi
done

Attachment: pgpSbTkRGyo7f.pgp
Description: PGP signature