Unable to search keyserver


I am unable to search certificates in keyservers independently of the keyserver used.

A dirmngr error is showing: “Server indicated a falure”.

C:\Users\jruao>gpg -vvv --debug-all --keyserver=“pgp.mit.edu” --search-keys My_key
gpg: reading options from ‘C:/Users/jruao/AppData/Roaming/gnupg/gpg.conf’
gpg: using character set ‘CP850’
gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing ipc clock lookup extprog
gpg: DBG: [not enabled in the source] start
gpg: DBG: chan_0x0000023c ← # Home: C:\Users\jruao\AppData\Roaming\gnupg
gpg: DBG: chan_0x0000023c ← # Config: C:\Users\jruao\AppData\Roaming\gnupg\dirmngr.conf
gpg: DBG: chan_0x0000023c ← OK Dirmngr 2.2.8 at your service
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_0x0000023c → GETINFO version
gpg: DBG: chan_0x0000023c ← D 2.2.8
gpg: DBG: chan_0x0000023c ← OK
gpg: DBG: chan_0x0000023c → KEYSERVER --clear hkp://pgp.mit.edu
gpg: DBG: chan_0x0000023c ← OK
gpg: DBG: chan_0x0000023c → KS_SEARCH – My_key_A
gpg: DBG: chan_0x0000023c ← ERR 167772379 Server indicated a failure
gpg: error searching keyserver: Server indicated a failure
gpg: keyserver search failed: Server indicated a failure
gpg: DBG: chan_0x0000023c → BYE
gpg: DBG: [not enabled in the source] stop
gpg: keydb: handles=0 locks=0 parse=0 get=0
gpg: build=0 update=0 insert=0 delete=0
gpg: reset=0 found=0 not=0 cache=0 not=0
gpg: kid_not_found_cache: count=0 peak=0 flushes=0
gpg: sig_cache: total=0 cached=0 good=0 bad=0
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: rndjent stat: collector=0x00000000 calls=0 bytes=0
gpg: secmem usage: 0/32768 bytes in 0 blocks

Can you please point me on how to further debug this?


Hi Jorge,
please check the debugging options for dirmngr and set a logfile there.

Also you could try with a different keyserver to see if it isn’t broken.