The problem happens when I use gpg … –search-keys, as it always returns :
gpg: error searching keyserver: No keyserver available
gpg: keyserver search failed: No keyserver available
When I use the exact same commands on a Linux machine it works just fine.
I initially noticed the problem when I via Kleopatra wanted to check a signature of a file (without having the public key which was used to sign the file in Kleopatra). Kleopatra told me first that the signer was unknown, and when I then pushed the button to search for the key I got a pop-up with:
‘Information - Kleopatra’ ‘failed to search on certificate server. The error returned was: No keyserver available’
So to investigate the problem a bit more ‘raw’ than via Kleopatra I used the ‘gpg’ line command (shipped with Kleopatra) to collect some information.
I didn’t find anything in this forum that came ‘close enough’ to this situation, so therefore I created this case.
And I’m aware of that –keyserver is deprecated, but deprecated features should of course still work (until they are removed).
I have tried different keyservers but the same problem occurs with all keyservers. I have also tried without specifying any keyserver - same result.
More info / example
On Windows 11:
C:>gpg --debug-all --keyserver https://keys.openpgp.org:443 --search-keys CAAE408AEBE2288E96FC5D5E157432CF78A65729
gpg: reading options from ‘C:/Users/xyz/AppData/Roaming/gnupg/gpg.conf’
gpg: reading options from ‘\[cmdline\]’
gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing ipc recsel clock lookup extprog keydb
gpg: enabled compatibility flags:
gpg: DBG: \[no clock\] start
gpg: DBG: chan_0x0000000000000258 ← # Home: C:\\Users\\xyz\\AppData\\Roaming\\gnupg
gpg: DBG: chan_0x0000000000000258 ← # Config: C:/Users/xyz/AppData/Roaming/gnupg/dirmngr.conf
gpg: DBG: chan_0x0000000000000258 ← OK Dirmngr 2.5.18 at your service, process 26632
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_0x0000000000000258 → GETINFO version
gpg: DBG: chan_0x0000000000000258 ← D 2.5.18
gpg: DBG: chan_0x0000000000000258 ← OK
gpg: DBG: chan_0x0000000000000258 → KEYSERVER --clear https://keys.openpgp.org:443
gpg: DBG: chan_0x0000000000000258 ← OK
gpg: DBG: chan_0x0000000000000258 → KS_SEARCH – CAAE408AEBE2288E96FC5D5E157432CF78A65729
gpg: DBG: chan_0x0000000000000258 ← ERR 167772346 No keyserver available
gpg: error searching keyserver: No keyserver available
gpg: keyserver search failed: No keyserver available
gpg: DBG: chan_0x0000000000000258 → BYE
gpg: DBG: \[no clock\] 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: objcache: keys=0/0/0 chains=0,0..0 buckets=0/0 attic=0
gpg: objcache: uids=0/0/0 chains=0,0..0 buckets=0/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=0x0000000000000000 calls=0 bytes=0
gpg: secmem usage: 0/32768 bytes in 0 blocks
C:>
C:>which gpg.exe
C:\\Program Files\\GnuPG\\bin\\gpg.exe
C:>gpg --version
gpg (GnuPG) 2.5.18
libgcrypt 1.12.1
Copyright (C) 2025 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: C:\\Users\\xyz\\AppData\\Roaming\\gnupg
Supported algorithms:
Pubkey: RSA, Kyber, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
C:>
On Linux:
gpg --debug-all --keyserver https://keys.openpgp.org:443 --search-keys CAAE408AEBE2288E96FC5D5E157432CF78A65729
gpg: reading options from ‘\[cmdline\]’
gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing ipc clock lookup extprog
gpg: enabled compatibility flags:
gpg: DBG: \[no clock\] start
gpg: DBG: chan_3 ← # Home: /home/xyz/.gnupg
gpg: DBG: chan_3 ← # Config: /home/xyz/.gnupg/dirmngr.conf
gpg: DBG: chan_3 ← OK Dirmngr 2.4.7 at your service, process 29588
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_3 → GETINFO version
gpg: DBG: chan_3 ← D 2.4.7
gpg: DBG: chan_3 ← OK
gpg: DBG: chan_3 → KEYSERVER --clear https://keys.openpgp.org:443
gpg: DBG: chan_3 ← OK
gpg: DBG: chan_3 → KS_SEARCH – CAAE408AEBE2288E96FC5D5E157432CF78A65729
gpg: DBG: chan_3 ← S PROGRESS tick ? 0 0
gpg: DBG: chan_3 ← S SOURCE https://keys.openpgp.org:443
gpg: DBG: chan_3 ← D info:1:1%0D%0Apub:EF6E286DDA85EA2A4BA7DE684E2C6E8793298290:1:4096:1418637242::%0D%0Auid:Tor%2520Browser%2520Developers%2520(signing%2520key)%2520%253Ctorbrowser@torproject.org%253E:1721044772::r%0D%0A
gpg: data source: https://keys.openpgp.org:443
gpg: DBG: chan_3 ← OK
gpg: DBG: iobuf-1.0: close ‘?’
(1) Tor Browser Developers (signing key) <torbrowser@torproject.org>
4096 bit RSA key 4E2C6E8793298290, created: 2014-12-15
Keys 1-1 of 1 for “CAAE408AEBE2288E96FC5D5E157432CF78A65729”. Enter number(s), N)ext, or Q)uit >
which gpg
/usr/bin/gpg
gpg --version
gpg (GnuPG) 2.4.7
libgcrypt 1.11.0
Copyright (C) 2024 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /home/xyz/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
====================
Please help if you can ![]()
Best regards
Frank
