querying multiple keyservers
darren chamberlain
dlc@users.sourceforge.net
Wed Apr 23 21:34:03 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* Neil Williams <linux at codehelp.co.uk> [2003-04-23 15:07]:
> I was thinking of the same thing for my own LUG. Darren, I looked at
> your idea myself but only if the sync was uni-directional. If the
> smaller keyserver sends keys to the main keyservers, the functionality
> of removing keys is lost.
Hm, good point.
> Is a keyserver just a public ring with extra software added?
This seems like a simple, straightforward way to implement it, but I've
never looked at any keyserver code. A simple script that (basically)
calls gpg --list-keys on it's input could qualify as a keyserver I
suppose:
#!/usr/bin/perl -w
use strict;
my $gpg = "/usr/local/bin/gpg";
use CGI;
my $q = CGI->new;
my $fpr = $q->param("fpr");
print $q->header("text/plain");
open KEY, "$gpg --list-keys --with-colons $fpr |";
while (<KEY>) {
next unless /^pub/;
my @Key = split /:/ => $_;
print `$gpg --export --armor $Key[4]`;
}
(darren)
- --
Your only obligation in any lifetime is to be true to yourself. Being
true to anyone else or anything else is ... impossible.
-- Richard Bach
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (SunOS)
iD8DBQE+pupHzsinjrVhZaoRAtDtAKCg3IfvQiHlGY6Nt3bgKzwZUYekTgCfUQfg
Pb2wc7kkEg8KgDFUxjUwZmE=
=PhxC
-----END PGP SIGNATURE-----