gpg-agent and allow-loopback-pinentry
patrick at enigmail.net
Sat Dec 27 14:36:38 CET 2014
-----BEGIN PGP SIGNED MESSAGE-----
On 26.12.14 20:23, Hauke Laging wrote:
> Am Fr 26.12.2014, 13:35:47 schrieb Patrick Brunschwig:
>> I would like to be able to have the user enter type the
>> passphrase in my application and then request gpg to do its job.
>> But with gpg 2.1 this is simply not possible.
> I have not used 2.1 yet so I am not sure whether this still applies
> but I assume that.
> You should be able to do this (see the following link):
> 1) Create a temporary config dir for gpg/aga-agent.
> 2) Create a config file for gpg-agent which replaces pinentry with
> your own script / program.
> 3) Use this temporary config dir for creating the key (or for
> changing its passphrase).
> 4) Export the new key.
> 5) Import the key file to the regular gpg config dir (delete it
> before if you just change the passphrase).
> Could be easier but at least it should be possible (it is with
Under no circumstance would I want to implement this in Enigmail. Even
more as Unix scripts don't work on Windows.
And I'm talking about GnuPG 2.1.x only. In GnuPG 2.0.x you can set the
passphrase as part of the key specification.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-----END PGP SIGNATURE-----
More information about the Gnupg-devel