Automatic resyncing of keys?

Jean-Francois PARIS jean-francois.paris@insalien.org
Mon Apr 22 13:40:01 2002


--=.NK(I_xofI0'd5U
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

On Sat, 20 Apr 2002 09:32:57 -0400
Shawn McMahon <smcmahon@eiv.com> wrote:

> I'm sure this must have been asked before, but I'm not finding it in the
> archives or google:
> 
> Is there a way to automatically re-retrieve all the keys I have in my
> keyring, to get any updated signatures that have been re-submitted,
> short of writing a script?
> 
> If not, has somebody written that script already?

a small perl script. Also works with actionPerl on Windows

----
#!/usr/bin/perl

$gnupg_exec="/usr/bin/gpg";

@keyidlist = ();

open (GPG ,"$gnupg_exec --list-keys --with-colons |");

while ($ligne = <GPG>) {
    @champs = split(/:/,$ligne);
    if ($champs[0] eq "pub") {
        push(@keyidlist, $champs[4]);
        print("$champs[4] ajoutée\n");
    }
}

foreach $id (@keyidlist) {
    system("$gnupg_exec --recv-key $id");
}
----

regards.
-- 
-------------------------------------
Paris jean-francois                \|/  ____  \|/
                                   "@' / ,. \ `@"
jean-francois.paris@insalien.org    /_| \__/ |_\
jean-francois.paris@insa-lyon.fr       \__U_/
^^^^^^^^^^^^^^^^^^^^^^^^
CLE PUBLIQUE PGP&GPG 
DH/DSS ID: 0xBF4B709E
Please note : this is a new key
-----------
AIM mjediyoda
Jabber rouge_@jabber.org
-----------
PAGE WEB : http://mjediyoda.free.fr/
-------------------------------------

--=.NK(I_xofI0'd5U
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iEYEARECAAYFAjzD9m8ACgkQpAouOb9LcJ6pkACfc8zxikctm7xrOAWkROMterCL
jvUAmgPq1hA/d06i7OEeCCjnGLhHTksh
=WWXQ
-----END PGP SIGNATURE-----

--=.NK(I_xofI0'd5U--