gpg-agent and allow-loopback-pinentry

Patrick Brunschwig patrick at enigmail.net
Sat Dec 27 14:36:38 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

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):
> 
> http://lists.gnupg.org/pipermail/gnupg-users/2013-December/048362.html
>
>  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
> 2.0.x).

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.

- -Patrick

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJUnrXlAAoJEMk25cDiHiw+8M0H/Rd+bIMbJLDtipjKHst2fz78
2FHCaKcdpSGa8xAsTnSJH+gUtCaVNDm/liuDYRjP0teBUGOsvJmWv7vxner3grPw
KLEvBbaUVCzZXznEc4VhiBJ6BKyKzWAO2wMv24MrZToYYz8o2yZwf8cZlGZqten6
EcENhrWrSjORVAHXA45Tn4tYP0SaLN/2fj4nPVW3jHs3EhUOTQ98N0AGxXhHInDG
exNN30bckZBU/3w5ZJmyStCniaXUF792J5NhS05IX26V7Y9l5MvcuUthLB3t3InA
vxQIFnkINgQudRRnHQ1e1JVoB8NqZxHIflJqRCn+mp03Ej1HVufP5iwRStAEKiI=
=Y6zd
-----END PGP SIGNATURE-----



More information about the Gnupg-devel mailing list