6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/29/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12991] Fetching PGP public keys from keyservers is broken by default config
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ __.. . .. . | \(__ | |__||_/ |__/.__)|___| || \
Comment
> Hi, > > I just upgraded my Horde installation from 5.0.5 to 5.1.5. > > Afterwards I noticed that IMP could no longer verify the PGP > signature for all mails which have a PGP signature attached but where > the sender is not in my addressbook. It complains with the message > "Could not retrieve public key for ...." > For user, which are in my address book and have a PGP public key > attached, the verification is still working. > > After looking into the PGP keyserver unit test, see output below, I > could fix the problem by adding "http://" to the config setting in > horde/config.php: > $conf['gnupg']['keyserver'] = array('pgp.mit.edu'); > e.g.: > $conf['gnupg']['keyserver'] = array('http://pgp.mit.edu'); > > Which results again in correct verified PGP signatures in IMP "gpg: > Good signature from ..." > > Since you cannot change the list of available keyservers in the > "GnuPG Settings" tab of the Horde configuration I guess something is > broken, either the default entries or the method of fetching keys > from the keyservers. > > ###### Output of keyserver unit test > phpunit Horde_Crypt_PgpKeyserverTest PgpKeyserverTest.php > PHPUnit 3.7.20 by Sebastian Bergmann. > > Configuration read from > /usr/share/php/tests/Horde_Crypt/Horde/Crypt/phpunit.xml > > EE > > Time: 14 ms, Memory: 5.75Mb > > There were 2 errors: > > 1) Horde_Crypt_PgpKeyserverTest::testKeyserverRetrieve > Horde_Crypt_Exception: Problem with > pool.sks-keyservers.net:11371/pks/lookup?op=get&search=0x4DE5B969: > fopen(pool.sks-keyservers.net:11371/pks/lookup?op=get&search=0x4DE5B969): > failed to open stream: No such file or directory > > /usr/share/php/Horde/Crypt/Pgp/Keyserver.php:92 > /usr/share/php/Horde/Http/Client.php:181 > /usr/share/php/Horde/Http/Client.php:93 > /usr/share/php/Horde/Crypt/Pgp/Keyserver.php:90 > /usr/share/php/tests/Horde_Crypt/Horde/Crypt/PgpKeyserverTest.php:37 > > Caused by > Horde_Http_Exception: Problem with > pool.sks-keyservers.net:11371/pks/lookup?op=get&search=0x4DE5B969: > fopen(pool.sks-keyservers.net:11371/pks/lookup?op=get&search=0x4DE5B969): > failed to open stream: No such file or directory > > /usr/share/php/Horde/Http/Request/Fopen.php:117 > /usr/share/php/Horde/Http/Client.php:181 > /usr/share/php/Horde/Http/Client.php:93 > /usr/share/php/Horde/Crypt/Pgp/Keyserver.php:90 > /usr/share/php/tests/Horde_Crypt/Horde/Crypt/PgpKeyserverTest.php:37 > > 2) Horde_Crypt_PgpKeyserverTest::testKeyserverRetrieveByEmail > Horde_Crypt_Exception: Problem with > pool.sks-keyservers.net:11371/pks/lookup?op=index&options=mr&search=jan%40horde.org: fopen(pool.sks-keyservers.net:11371/pks/lookup?op=index&options=mr&search=jan%40horde.org): failed to open stream: No such file or > directory > > /usr/share/php/Horde/Crypt/Pgp/Keyserver.php:163 > /usr/share/php/Horde/Http/Client.php:181 > /usr/share/php/Horde/Http/Client.php:93 > /usr/share/php/Horde/Crypt/Pgp/Keyserver.php:161 > /usr/share/php/tests/Horde_Crypt/Horde/Crypt/PgpKeyserverTest.php:44 > > Caused by > Horde_Http_Exception: Problem with > pool.sks-keyservers.net:11371/pks/lookup?op=index&options=mr&search=jan%40horde.org: fopen(pool.sks-keyservers.net:11371/pks/lookup?op=index&options=mr&search=jan%40horde.org): failed to open stream: No such file or > directory > > /usr/share/php/Horde/Http/Request/Fopen.php:117 > /usr/share/php/Horde/Http/Client.php:181 > /usr/share/php/Horde/Http/Client.php:93 > /usr/share/php/Horde/Crypt/Pgp/Keyserver.php:161 > /usr/share/php/tests/Horde_Crypt/Horde/Crypt/PgpKeyserverTest.php:44 > > FAILURES! > Tests: 2, Assertions: 0, Errors: 2. > ################## > > Kind Regards > > Matthias Marx
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers