Trying to locat or fetch a public key with WKD fails with an "unknwon error" in Windows Environments, while it works within MacOS and Linux Environments.
C:\Users\User>gpg --locate-keys --auto-key-locate clear,nodefault,wkd mail@DOMAIN gpg: Fehler beim automatischen holen von `mail@DOMAIN' über `WKD': Unknown error gpg: error reading key: Unknown error
The problem occours up to Windows 11 Pro 21H2 Build 22000.438, and
C:\Users\User>gpg --version
gpg (GnuPG) 2.3.4
libgcrypt 1.9.4
Copyright (C) 2021 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\User\AppData\Roaming\gnupg
Unterstützte Verfahren:
Öff. Schlüssel: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Verschlü.: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
AEAD: EAX, OCB
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Komprimierung: nicht komprimiert, ZIP, ZLIB, BZIP2
from gpg4win 4.0.0
The problem is reported at least since 2019, see https://www.kuketz-blog.de/gnupg-web-key-directory-wkd-einrichten/#comment-51597
I was not able, to find this error within the bugtracker.
Without solving it, it is nearly impossible to implement wkd within the german public administration, as suggested by the BSI, see https://www.bsi.bund.de/DE/Themen/Unternehmen-und-Organisationen/Informationen-und-Empfehlungen/Freie-Software/E-Mail-Verschluesselung/EasyGPG/easygpg.html?nn=129212#doc432800bodyText7