error return code when no agent available
wk at gnupg.org
Thu Nov 30 15:57:42 CET 2017
On Thu, 30 Nov 2017 13:26, astieger at suse.com said:
> The return code of 2 seems to depends specifically on the availability
> of an agent binary. This is a minimal installer system where no agent is
The agent is required because gpg needs to check whether it has a
matching secret key for the imported public key.
> Previously this was not an issue. Do you know what and why this changed?
> If this is intentional, is there a work-around in terms of settings or
> the CLI?
The gpg-agent is a part of GnuPG and has been since 2003. With 2.0 you
could get away without it because gpg did not yet utilize the agent for
private key store (in contrast to gpgsm).
The return codes from gpg have no specific meaning. For scripting you
need to look at the status lines. GPGME entirely ignores the return
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 227 bytes
Desc: not available
More information about the Gnupg-devel