Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#43364 - [gnupg] Cannot connect to HKPS keyserver

Attached to Project: Arch Linux
Opened by Florian Walch (fwalch) - Wednesday, 07 January 2015, 11:56 GMT
Last edited by Gaetan Bisson (vesath) - Thursday, 03 December 2015, 19:49 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 8
Private No

Details

Description:
Keyservers can't be accessed over HKPS. Other protocols (e.g. HKP) work.

Additional info:
* gnupg 2.1.1-1

Steps to reproduce:

1. Move old .gnupg directory out of the way:
$ mv ~/.gnupg ~/gnupg.backup

2. Create default .gnupg config:
$ gpg --list-keys
gpg: directory '/home/florian/.gnupg' created
gpg: new configuration file '/home/florian/.gnupg/gpg.conf' created
gpg: WARNING: options in '/home/florian/.gnupg/gpg.conf' are not yet active during this run
gpg: keybox '/home/florian/.gnupg/pubring.kbx' created
gpg: /home/florian/.gnupg/trustdb.gpg: trustdb created

3. Comment the default keyserver(s):
$ sed -i 's/^keyserver/#keyserver/' ~/.gnupg/gpg.conf

4. Try to retrieve a key:
$ gpg --debug 1024 --keyserver hkps://hkps.pool.sks-keyservers.net --search-keys 9741E8AC
gpg: reading options from '/home/florian/.gnupg/gpg.conf'
gpg: enabled debug flags: extprog assuan
gpg: DBG: chan_3 <- # Home: /home/florian/.gnupg
gpg: DBG: chan_3 <- # Config: [none]
gpg: DBG: chan_3 <- OK Dirmngr 2.1.1 at your service
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_3 -> KEYSERVER --clear hkps://hkps.pool.sks-keyservers.net
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> KS_SEARCH -- 9741E8AC
gpg: DBG: chan_3 <- S PROGRESS tick ? 0 0
gpg: DBG: chan_3 <- S PROGRESS tick ? 0 0
gpg: DBG: chan_3 <- S PROGRESS tick ? 0 0
gpg: DBG: chan_3 <- ERR 1 General error <Unspecified source>
gpg: error searching keyserver: General error
gpg: keyserver search failed: General error
gpg: DBG: chan_3 -> BYE
gpg: secmem usage: 0/32768 bytes in 0 blocks

5. HKP works:
$ gpg --debug 1024 --keyserver hkp://hkps.pool.sks-keyservers.net --search-keys 9741E8AC

Adding a dirmgr.conf with "hkp-cacert /path/to/CA/sks-keyservers.netCA.pem" doesn't change anything.

Note that for testing, only one keyserver should be "active" (i.e. in gpg.conf or specified as --keyserver; step 3), since apparently only the last specified one will be used: http://lists.gnupg.org/pipermail/gnupg-devel/2014-December/029219.html

Verified these steps on a fresh system using Docker. The Dockerfile (with instructions on how to use it) is attached.

BBS topic: https://bbs.archlinux.org/viewtopic.php?id=191564
This task depends upon

Closed by  Gaetan Bisson (vesath)
Thursday, 03 December 2015, 19:49 GMT
Reason for closing:  Works for me
Additional comments about closing:  configuration error; see https://bugs.gnupg.org/gnupg/issue2130
Comment by Gaetan Bisson (vesath) - Friday, 09 January 2015, 19:21 GMT
Please report this issue upstream at http://bugs.g10code.com/ .
Comment by Florian Walch (fwalch) - Friday, 09 January 2015, 23:19 GMT
I think it has already been reported: https://bugs.g10code.com/gnupg/issue1792 resp. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771666

Sorry, I should have searched more thoroughly upstream before reporting it here. I guess I just didn't expect a feature such as HKPS to be broken upstream.
Comment by Johannes Löthberg (demize) - Friday, 09 January 2015, 23:25 GMT
Yeah, there are atleast one server in the pool that will work when used directly IIRC until the hostname verification is fixed upstream, I can try looking into which one it was and report back later maybe.
Comment by M. (Tomsod) - Monday, 23 March 2015, 14:50 GMT
  • Field changed: Percent Complete (100% → 0%)
Bug still persists for me!
I was able to reproduce all 5 steps both with [testing] package and gnupg compiled from git sources. I also rebooted after each reinstall, just in case. hkp:// does work, though.
Comment by Gaetan Bisson (vesath) - Monday, 23 March 2015, 16:23 GMT
Tomsod, please report this issue upstream: http://bugs.g10code.com/
Comment by Daniel Hahler (blueyed) - Monday, 26 October 2015, 16:45 GMT
There is a new upstream report at: https://bugs.gnupg.org/gnupg/issue2130
Comment by Bruno Pagani (ArchangeGabriel) - Wednesday, 02 December 2015, 21:47 GMT

Loading...