On Mittwoch, 29. März 2023 12:20:08 CEST Fourhundred Thecat via Gnupg-users 
wrote:
> I am getting this error:
> 
> $ gpg --lock-never --no-verbose --batch --yes --pinentry-mode loopback -e -r
> 'n...@domain.com' -o zz.gpg zz gpg: failed to start the dirmngr
> '/usr/bin/dirmngr': No such file or directory gpg: connecting dirmngr at
> '/var/lib/asterisk/.gnupg/S.dirmngr' failed: No such file or directory gpg:
> error retrieving 'n...@domain.com' via WKD: No dirmngr
> ogpg: n...@domain.com: skipped: No dirmngr
> gpg: zz: encryption failed: No dirmngr
> .
> this is on a server where gpg worked before without problems.

Could it be that the used key has expired? This would explain why all of the 
sudden gpg tries to look for the key via WKD. It should only do this if the 
local lookup failed.

To prevent automatic remote key lookup add
no-auto-key-locate
to your gpg.conf.

Regards,
Ingo

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to