das-labor / neopg

The multiversal cryptoengine!
Other
216 stars 16 forks source link

Remove support for preferred keyserver. #36

Closed lambdafu closed 6 years ago

lambdafu commented 6 years ago

Preferred keyservers can be used in data signatures and user id signatures, and allow the signer to provide one (or more) URIs that supposedly can be used to lookup or refresh the public key of the signer (refreshing is important to check for revocations).

This is a severe misfeature, and NeoPG removes support for it, because of the following reasons:

Giovanni Mascellani:
spk:24:1:25:hkp%3A//keyserver.uz.sns.it (part of the SKS pool)
(6 times)
spk:24:1:24:hkp%3A//keyserver.linux.it (no DNS entry)
(4 times)

Raphaël Hertzog <raphael@ouaza.com>
spk:24:1:20:hkp%3A//keys.gnupg.net (alias for SKS pool)
(2 times)
spk:24:1:24:hkp%3A//keyring.debian.org
(1 time)

I have not checked the expiration and revocation status to see if those would help in this particular case. In general, it can be arbitrary complicated.

The API of libneopg will provide low-level access to this information, if it exists, which might be sufficient for some users who want to experiment with them. In case it is desirable to do key lookup based on signatures containing keyserver information, it would be important to involve the user anyway, and not do it automatically behind the scenes.