I have dirmngr configured to use hkps://hkps.pool.sks-keyservers.net.
when i try to retrive a key, sometimes gpg fails with:
0 dkg@alice:~/src/sks$ gpg --refresh 41259773973A612A
gpg: refreshing 1 key from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: Invalid argument
2 dkg@alice:~/src/sks$
dirmngr's logs show:
2016-08-08 02:13:26 dirmngr[2805.1] DBG: chan_1 <- GETINFO version
2016-08-08 02:13:26 dirmngr[2805.1] DBG: chan_1 -> D 2.1.14
2016-08-08 02:13:26 dirmngr[2805.1] DBG: chan_1 -> OK
2016-08-08 02:13:26 dirmngr[2805.1] DBG: chan_1 <- KEYSERVER
2016-08-08 02:13:26 dirmngr[2805.1] DBG: chan_1 -> S KEYSERVER
hkps://hkps.pool.sks-keyservers.net
2016-08-08 02:13:26 dirmngr[2805.1] DBG: chan_1 -> OK
2016-08-08 02:13:26 dirmngr[2805.1] DBG: chan_1 <- KS_GET --
0xC90EF1430B3AC0DFD00E6EA541259773973A612A
2016-08-08 02:13:26 dirmngr[2805.1] DBG: gnutls:L3: ASSERT:
mpi.c[_gnutls_x509_read_uint]:246
2016-08-08 02:13:26 dirmngr[2805.1] DBG: gnutls:L5: REC[0x7f1a48016e20]:
Allocating epoch #0
2016-08-08 02:13:26 dirmngr[2805.1] can't connect to '2001:ba8:1f1:f2d4::2':
Invalid argument
2016-08-08 02:13:26 dirmngr[2805.1] error connecting to
'https://[2001:ba8:1f1:f2d4::2]:443': Invalid argument
2016-08-08 02:13:26 dirmngr[2805.1] DBG: gnutls:L5: REC[0x7f1a48016e20]: Start
of epoch cleanup
2016-08-08 02:13:26 dirmngr[2805.1] DBG: gnutls:L5: REC[0x7f1a48016e20]: End of
epoch cleanup
2016-08-08 02:13:26 dirmngr[2805.1] DBG: gnutls:L5: REC[0x7f1a48016e20]: Epoch
#0 freed
2016-08-08 02:13:26 dirmngr[2805.1] command 'KS_GET' failed: Invalid argument
2016-08-08 02:13:26 dirmngr[2805.1] DBG: chan_1 -> ERR 167804976 Invalid
argument <Dirmngr>
When i simply retry the query, i end up with the same exact failure on the same
host.
Ideally, dirmngr should happily connect. gnutls-cli is capable of connecting to
that host using TLS (though i haven't tried verifying the certificate through
gnutls-cli).
At the very least, i'd expect dirmngr to reject that particular member of the
pool and try a different pool member on subsequent attempts.