AW: WINDOWS - Adding passphrase to gpg via command line

Peter Lebbing peter at
Fri Jun 17 11:33:19 CEST 2016


On 17/06/16 11:25, Mike Kaufmann wrote:
> The hint with the homedir did the trick - you are my hero!

Ah that's really great!

> gpgconf --kill gpg-agent

I read that in v2.1.13, gpgconf gains an option "--homedir" as well. So
starting with that release, I'd advise to include the --homedir for
gpgconf invocations. In fact, I'm unsure whether the version before
v2.1.13 actually does what you want it to do now... it might only kill
an agent pertaining to the default homedir, I don't know.

> gpg --homedir C:\ESA\EIOPA\PreProd\DCCR -v --output C:\ESA\EIOPA\Export\LI001_DATPPP_EIOPA_000001_16.asc --armor -u sender at --digest-algo SHA512 --sign c:\ESA\EIOPA\LI001_DATPPP_EIOPA_000001_16.csv

You don't need the "-v" on every invocation. It just makes it more
chatty about what it does, and that is helpful when trying to root out
the cause of a problem. It's less useful in production.

> Thank you very much for all your advises help!

You're welcome! I'm happy we found the problem.



I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at <>

More information about the Gnupg-users mailing list