Hello
I have noticed some of the same issues on the forum page, but none of them seem to mention the root of the problem.
The same problem is that when pressing the “Look up on server” option in Kleopatra, nothing happens. But through testing, I found that using gpg --search-keys under the command line will receive an unknown error as shown below (personal information has been replaced with xxx):
C:\Users\xxx>gpg --keyserver hkps://hkps.pool.sks-keyservers.net --search-keys xxx
gpg: error searching keyserver: Unknown error
gpg: keyserver search failed: Unknown error
I can be sure that this is not a problem with my network or sks server, because at the same time, I can search normally using the gpg included in “Git for Windows”
By setting up a full debug log, I found the problem seems on Dirmngr, some related logs are as follows:
gpg: DBG: chan_0x00000238 ← # Config: [none]
gpg: DBG: chan_0x00000238 ← OK Dirmngr 2.2.23 at your service
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_0x00000238 → GETINFO version
gpg: DBG: chan_0x00000238 ← D 2.2.23
gpg: DBG: chan_0x00000238 ← OK
gpg: DBG: chan_0x00000238 → KEYSERVER --clear hkps://hkps.pool.sks-keyservers.net
gpg: DBG: chan_0x00000238 ← OK
gpg: DBG: chan_0x00000238 → KS_SEARCH – xxx
gpg: DBG: chan_0x00000238 ← ERR 167804995 Unknown error
gpg: error searching keyserver: Unknown error
gpg: keyserver search failed: Unknown error
gpg: DBG: chan_0x00000238 → BYE
gpg: DBG: [not enabled in the source] stop
As shown above, a problem occurred during the KS_SEARCH step, and an Unknown error was returned.
I mentioned above that I can use the gpg included in “Git for Windows” on the same computer normally, so I also make some tests for the gpg included in “Git for Windows”, all things normal, crocet data reviced during the KS_SEARCH step
As I mentioned above, I can normally use the gpg included in “Git for Windows” on the same computer, so I also make some tests on the gpg contained in “Git for Windows”, and everything is normal. The correct data was returned in the KS_SEARCH step.
I already lost many time with this problem and can’t solve. Can someone help me solve this problem?
(Since I am not a native English speaker, there may be some grammatical problems, I hope I have described the problem clearly, please forgive me)
Best regards.