Mailing List Archive

Can't get key from keyserver: eof
I have the strangest problem with GPG. It can't won't talk to any
keyservers.

First, version info:

gpg (GnuPG) 1.0.0

Supported algorithms:
Cipher: IDEA, 3DES, CAST5, BLOWFISH, TWOFISH
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA, ELG
Hash: MD5, SHA1, RIPEMD160

gcc version 2.8.1

HP-UX version 10.20

Here's the error message I get:

gpg: Signature made Sat, Oct 30, 1999 04:25:24 PM CDT using RSA key ID 766CD151
gpg: requesting key 766CD151 from wwwkeys.us.pgp.net ...
gpg: can't get key from keyserver: eof
gpg: Can't check signature: public key not found


I wondered why this would happen, so I tried talking to the server
directly.

% netcat wwwkeys.us.pgp.net 11371
GET /pks/lookup?op=get&search=0x766CD151 HTTP/1.0

HTTP/1.0 200 OK
Server: pks_www/0.9.4
Content-type: text/html

<title>Public Key Server -- Get ``0x766CD151
''</title><p>
<h1>Public Key Server -- Get ``0x766CD151
''</h1><p>
<pre>
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 5.0
Comment: PGP Key Server 0.9.4

mQENAzdC3hAAAAEIAL4Ps0mAZRJj9e2ULY8+gRRSSMw2fnyYb97vNsV326dLgnKi
96EFknbjDruCex1qXO0ddpfME4cssWPE8ZAdmbrLKFHh8TobI83Bed0FYegIGCW/
U+q/XKk4DlBCvx+mflmeaAc/sAg9ouczQKjiQ9ipznjgL8lq01DaOh4yJ/89pscj
NDArQ4LndjVI1ahb9kgxBdsGo4/C41t2SY6apR73syIFDPk2hRhmEnj9usCvkhME
NU8G+8gBHUjxvjWOU+tDl8+Rj6A391Wuk5FN4sMHBcU7nwaIpq2Ag1L6hrex9S6D
N3QCZB+hprsziO99nQ35aQb1m82ogFdVJ3Zs0VEABRG0L0dlcm8gVHJldW5lciA8
Z2Vyb0BmYXZldmUudW5pLXN0dXR0Z2FydC5kZT4gLzIviQCVAwUTN0Lgb0IBUTWG
T7StAQGk1gP/ZhTA4BipWesFjGJCkqkhmoJKqYOoa8cVeGGmPW+MH19jeXFtevvZ
iKMkNWks7tkPfPY6E5rhYWx2JXCAI3uCq+7vOK9YX7twllu0S8/pANEkubapZPxb
3O/C3oSYSoE31dq8RGebv0WSYpmEaE1LDAOx5Z8NGWjy+qaCb5mM7aWJARUDBRA3
Qt6WgFdVJ3Zs0VEBARTIB/9e7vYUWwsxhGNcDclcb31+uz+5nlhHvRHimssECpfJ
G/FV3XcFw2/zYMSGU4MOBowGhdsO+iHm5uULaJwNuHFFvYo6cGLR4X0ofl99gTxh
BNCSmshte0wMHoUJW0Wl3cM3c/N1xa3XDmrJ3ECaRUb2nlYWwRaAGEVcxCHx6p64
ruFL5YcLnEW+cDqtqiQ95FNYYQ+mRJglZl5K0nG1me4qBmXlhfkz8bknl1yV9TdO
1JRViQWTEUkWJLusxkm9KIzyAtbxAIgMNOepsDzTDQpC2DjQKezxGl0Wdba64xLS
kD/NQl7aFd4fOumFY4kSeO2Ci571PJCRn1/zYIHyFf0I
=EQZL
-----END PGP PUBLIC KEY BLOCK-----
</pre>

Okay, so the server is reachable, and I can get data from it just fine!
Playing with syscall tracing, I see that gpg opens the connection, sends
the data, and then just disconnects right afterward. Why would it do
that?

Please CC me, as I am not (yet) subscribed to this list. Thanks!

--
David DeSimone | "The doctrine of human equality reposes on this:
fox@rsn.hp.com | that there is no man really clever who has not
Hewlett-Packard | found that he is stupid." -- Gilbert K. Chesterson
UX WTEC Engineer | PGP: 5B 47 34 9F 3B 9A B0 0D AB A6 15 F1 BB BE 8C 44
Re: Can't get key from keyserver: eof [ In reply to ]
David DeSimone <fox@rsn.hp.com> wrote:
>
> gpg: Signature made Sat, Oct 30, 1999 04:25:24 PM CDT using RSA key ID 766CD151
> gpg: requesting key 766CD151 from wwwkeys.us.pgp.net ...
> gpg: can't get key from keyserver: eof
> gpg: Can't check signature: public key not found

I have an update on this problem. If I comment out the following
statement, it works!

util/http.c:

int
http_wait_response( HTTP_HD hd, unsigned int *ret_status )
{
int rc;

http_start_data( hd ); /* make sure that we are in the data */
iobuf_flush( hd->fp_write );

hd->sock = dup( hd->sock );
if( hd->sock == -1 )
return G10ERR_GENERAL;
iobuf_close( hd->fp_write );
hd->fp_write = NULL;
/* shutdown( hd->sock, 1 ); */ <<<<< COMMENT THIS OUT <<<<<
hd->in_data = 0;

hd->fp_read = iobuf_fdopen( hd->sock , "r" );
if( !hd->fp_read )
return G10ERR_GENERAL;

rc = parse_response( hd );
if( !rc && ret_status )
*ret_status = hd->status_code;

return rc;
}

Does anyone have some idea WHY this would be the case?

(Please CC me, since I'm not (yet) subscribed to this list...)

--
David DeSimone | "The doctrine of human equality reposes on this:
fox@rsn.hp.com | that there is no man really clever who has not
Hewlett-Packard | found that he is stupid." -- Gilbert K. Chesterson
UX WTEC Engineer | PGP: 5B 47 34 9F 3B 9A B0 0D AB A6 15 F1 BB BE 8C 44
Re: Can't get key from keyserver: eof [ In reply to ]
On Fri, 03 Dec 1999, David DeSimone wrote:

> David DeSimone <fox@rsn.hp.com> wrote:
> >
> > gpg: Signature made Sat, Oct 30, 1999 04:25:24 PM CDT using RSA key ID 766CD151
> > gpg: requesting key 766CD151 from wwwkeys.us.pgp.net ...
> > gpg: can't get key from keyserver: eof
> > gpg: Can't check signature: public key not found
>
> I have an update on this problem. If I comment out the following
> statement, it works!

Sorry, I didn't read this thread, do you happen to use Internet Junk
Buster and forward your key request via this proxy??

If so, ijb breaks the connection once the browser closes the sending
part of the connection, which leads to this error. Commenting out the
shutdown call solves the problem, but leaves the socket open. You can
also move the shutdown call a few lines further down, which should solve
your problem without creating the other.

In case you really use ijb there is a patch attached which should help
as well.

Walter
Re: Can't get key from keyserver: eof [ In reply to ]
Walter Hofmann wrote:

> If so, ijb breaks the connection once the browser closes the sending
> part of the connection, which leads to this error.

Yes, ijb is a usefull program but leads to too many problems. Fortunately
I found another way of getting rid of the most irritating banners: place
ad.doubleclick.net and similar sites in /etc/hosts and set them to
127.0.0.1. That will prevent the site to be found. Altavista loads a lot
quicker now.

--
ir. J.C.A. Wevers // Physics and science fiction site:
johanw@vulcan.xs4all.nl // http://www.xs4all.nl/~johanw/index.html
PGP public keys at http://www.xs4all.nl/~johanw/pgpkeys.html