[Pkg-privacy-maintainers] Bug#780628: parcimonie: support gpg2

intrigeri intrigeri at debian.org
Tue Mar 29 16:45:16 UTC 2016


Hi,

Daniel Kahn Gillmor wrote (25 Sep 2015 04:40:22 GMT) :
> the usual way to deal with this is just to update the dirmngr config
> file to have the parameters you want.

> You can even do that programmatically with gpgconf, for example:
> [...]
> see gpgconf(1) for more details.  you may also be interested in the
> --runtime flag.

Thanks, I didn't know about gpgconf. Indeed we can do:

  echo 'use-tor:0:1' | gpgconf --change-options dirmngr

However, it seems that --runtime won't work here: even if I pass that
option to "gpgconf --change-options", dirmngr won't start using Tor
immediately. dirmngr will start using Tor if I kill it (and then I get
a fresh new dirmngr on next request), or if I run "gpgconf --reload
dirmngr".

So we need to do something like:

  echo 'use-tor:0:1' | gpgconf --change-options dirmngr && \
  gpgconf --reload dirmngr

... on parcimonie startup, if we detect that we're using gpg2, and
dirmngr has not been configured correctly yet.

Cheers,
--
intrigeri



More information about the Pkg-privacy-maintainers mailing list