Refreshing PGP keys

Dave Chapeskie dchapes@ddm.crosswinds.net
Wed Jun 13 19:21:02 2001


--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jun 10, 2001 at 09:51:25PM +0100, Andrew McDonald wrote:

> You could do a --recv-key for each key on your key ring in turn, but
> this is a little tedious if done by hand.
>=20
> I've attached a little shell script (nothing special) that I use to
> automate this. It creates a list of the keyids in your public keyring,
> and then performs a recv-key on each of them.
Just do something like: gpg --with-colons --fast-list-mode --list-keys \ | awk -F: '$1=3D=3D"pub" {print $5}' | sort | uniq \ | xargs -n 20 gpg --recv-keys Some people would prefer to use perl in place of the awk|sort|uniq pipe or do the duplicate removal within awk but this was the first thing I thought of and the performance of the --recv-key operation dwarfs any minor inefficiencies in the rest of the pipeline. --=20 Dave Chapeskie <dchapes@ddm.crosswinds.net> OpenPGP Key Fingerprint: 348F EE70 9845 22C4 857E 3B8A 5AA9 1CFD 3D2B 6B34 --AqsLC8rIMeq19msA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) iEYEARECAAYFAjsnoGYACgkQWqkc/T0razRdvgCgu0Efe/ATHjAlJ8SJWoVIFiSk Y6YAoL0+2MStHA1vUY/cW4/ofYZOWZMC =lXfN -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--