[Gpg4win-users-en] Trying to get gpg4win working with OpenLDAP as the keyserver

Philip Colmer philip.colmer at linaro.org
Tue Apr 5 14:43:36 CEST 2016


On 5 April 2016 at 12:26, Bernhard Reiter <bernhard at intevation.de> wrote:
>
> Hi Philip,
>
> On Monday 04 April 2016 at 13:00:52, Philip Colmer wrote:
> > It is working if I use the Linux implementation of gpg.
>
> which version of gpg4win are you using?


My apologies - 2.3.0

>
> It may be an idea to try one of the new betas (because they come with an
> updated modern gpg) and we probably will only fix issues in this areas
> in upcoming major versions.


OK. I've installed beta128 and it is still failing, just with
different messages now. Again, with debugging on guru level and
running "gpg --send-key", I get this output (with my details
redacted):

gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache
memstat trust hashing cardio ipc clock lookup extprog
gpg: DBG: [not enabled in the source] start
gpg: DBG: chan_0x000001a4 <- # Home: C:/Users/phili/AppData/Roaming/gnupg
gpg: DBG: chan_0x000001a4 <- # Config: [none]
gpg: DBG: chan_0x000001a4 <- OK Dirmngr 2.1.11 at your service
gpg: DBG: chan_0x000001a8 <- # Home: C:/Users/phili/AppData/Roaming/gnupg
gpg: DBG: chan_0x000001a8 <- # Config: [none]
gpg: DBG: chan_0x000001a8 <- OK Dirmngr 2.1.11 at your service
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_0x000001a8 -> GETINFO version
gpg: DBG: chan_0x000001a8 <- D 2.1.11
gpg: DBG: chan_0x000001a8 <- OK
gpg: DBG: chan_0x000001a8 -> KEYSERVER --clear ldaps://<my DN>:<my
password>@login.linaro.org
gpg: DBG: chan_0x000001a8 <- OK
gpg: DBG: chan_0x000001a8 -> KEYSERVER
gpg: DBG: chan_0x000001a8 <- S KEYSERVER ldaps://<my DN>:<my
password>@login.linaro.org
gpg: DBG: chan_0x000001a8 <- OK
gpg: DBG: [not enabled in the source] keydb_new
gpg: DBG: [not enabled in the source] keydb_search enter
gpg: DBG: keydb_search: 1 search descriptions:
gpg: DBG: keydb_search   0: SHORT_KID: 'F73E1842'
gpg: DBG: keydb_search: searching keyring (resource 0 of 1)
gpg: DBG: keyring_search: need_uid = 0; need_words = 0; need_keyid =
1; need_fpr = 0; any_skip = 0
gpg: DBG: fd_cache_open
(C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg) not cached
gpg: DBG: iobuf-2.0: open
'C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg'
desc=file_filter(fd) fd=428
gpg: DBG: keyring_search: initializing offset table. (need_keyid: 1 => 1)
gpg: DBG: keyring_search: searching from start of resource.
gpg: DBG: iobuf-2.0: underflow: buffer size: 8192; still buffered: 0
=> space for 8192 bytes
gpg: DBG: iobuf-2.0: underflow: A->FILTER (8192 bytes)
gpg: DBG: iobuf-2.0: A->FILTER() returned rc=0 (ok), read 1211 bytes
gpg: DBG: parse_packet(iob=2): type=6 length=269
(search./home/wk/b-w32/speedo/PLAY-release/gnupg-w32-2.1.11/g10/keyring.c.1115)
gpg: DBG: keyring_search: packet starting at offset 0 matched descriptor 0
gpg: DBG: keyring_search: returning success
gpg: DBG: free_packet() type=6
gpg: DBG: keydb_search: searched keyring (resource 0 of 1) => Success
gpg: DBG: [not enabled in the source] keydb_search leave (found)
gpg: DBG: [not enabled in the source] keydb_get_keybock enter
gpg: DBG: fd_cache_open
(C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg) not cached
gpg: DBG: iobuf-3.0: open
'C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg'
desc=file_filter(fd) fd=404
gpg: DBG: iobuf-3.0: underflow: buffer size: 8192; still buffered: 0
=> space for 8192 bytes
gpg: DBG: iobuf-3.0: underflow: A->FILTER (8192 bytes)
gpg: DBG: iobuf-3.0: A->FILTER() returned rc=0 (ok), read 1211 bytes
gpg: DBG: parse_packet(iob=3): type=6 length=269
(parse./home/wk/b-w32/speedo/PLAY-release/gnupg-w32-2.1.11/g10/keyring.c.414)
gpg: DBG: parse_packet(iob=3): type=13 length=40
(parse./home/wk/b-w32/speedo/PLAY-release/gnupg-w32-2.1.11/g10/keyring.c.414)
gpg: DBG: parse_packet(iob=3): type=2 length=319
(parse./home/wk/b-w32/speedo/PLAY-release/gnupg-w32-2.1.11/g10/keyring.c.414)
gpg: DBG: parse_packet(iob=3): type=12 length=2
(parse./home/wk/b-w32/speedo/PLAY-release/gnupg-w32-2.1.11/g10/keyring.c.414)
gpg: DBG: free_packet() type=12
gpg: DBG: parse_packet(iob=3): type=14 length=269
(parse./home/wk/b-w32/speedo/PLAY-release/gnupg-w32-2.1.11/g10/keyring.c.414)
gpg: DBG: parse_packet(iob=3): type=2 length=292
(parse./home/wk/b-w32/speedo/PLAY-release/gnupg-w32-2.1.11/g10/keyring.c.414)
gpg: DBG: parse_packet(iob=3): type=12 length=2
(parse./home/wk/b-w32/speedo/PLAY-release/gnupg-w32-2.1.11/g10/keyring.c.414)
gpg: DBG: free_packet() type=12
gpg: DBG: iobuf-3.0: underflow: buffer size: 8192; still buffered: 0
=> space for 8192 bytes
gpg: DBG: iobuf-3.0: underflow: A->FILTER (8192 bytes)
gpg: DBG: iobuf-3.0: A->FILTER() returned rc=-1 (EOF), read 0 bytes
gpg: DBG: C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg: close fd/handle 404
gpg: DBG: fd_cache_close
(C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg) new slot created
gpg: DBG: iobuf-3.0: close '?'
gpg: DBG: [not enabled in the source] keydb_get_keyblock leave
gpg: DBG: build_packet() type=6
gpg: DBG: iobuf-4.0: close '?'
gpg: DBG: build_packet() type=13
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-5.0: close '?'
gpg: DBG: build_packet() type=14
gpg: DBG: iobuf-6.0: close '?'
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-7.0: close '?'
gpg: DBG: iobuf-2.0: close 'file_filter(fd)'
gpg: DBG: C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg: close fd/handle 428
gpg: DBG: fd_cache_close
(C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg) new slot created
gpg: DBG: iobuf-1.0: close '?'
gpg: sending key F73E1842 to ldaps://<my DN>:<my password>@login.linaro.org
gpg: DBG: chan_0x000001a8 -> KS_PUT
gpg: DBG: chan_0x000001a8 <- INQUIRE KEYBLOCK
gpg: DBG: chan_000001A8 -> [ 44 20 99 01 25 30 44 04 57 02 45 5c 01 08
00 a0 ...(982 byte(s) skipped) ]
gpg: DBG: chan_000001A8 -> [ 44 20 b7 3c 6a b9 89 f9 a8 34 bf 4f b6 2f
56 e1 ...(221 byte(s) skipped) ]
gpg: DBG: chan_0x000001a8 -> END
gpg: DBG: chan_0x000001a8 <- INQUIRE KEYBLOCK_INFO
gpg: DBG: chan_0x000001a8 -> D
pub::2048:1:8BCF36D6F73E1842:1459766620:1522926000::::::::::%0Auid:::::1459766620::::Philip
Colmer <philip.colmer at linaro.org>:::::::%0Asig::::8BCF36D6F73E1842:1459766620:::::::::::%0Asub::2048:1:D6FAB52F64E74AA8:1459766620:1522926000::::::::::%0A
gpg: DBG: chan_0x000001a8 -> END
gpg: DBG: chan_0x000001a8 <- ERR 820 LDAP server is unavailable
<Unspecified source>
gpg: DBG: free_packet() type=6
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=2
gpg: keyserver send failed: LDAP server is unavailable
gpg: keyserver send failed: LDAP server is unavailable
gpg: DBG: chan_0x000001a8 -> BYE
gpg: DBG: [not enabled in the source] stop
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: secmem usage: 0/32768 bytes in 0 blocks

Somewhat curiously, the Linux gpg I was testing that works is version
1.4.16, so older than the test version above that fails. I'll see if I
can get a newer gpg for Linux to see if that still works.

Regards

Philip



More information about the Gpg4win-users-en mailing list