[pass] multiple gpg ids support in pass?

Jason A. Donenfeld Jason at zx2c4.com
Thu Sep 20 06:02:59 CEST 2012


Wait I was wrong!

On Thu, Sep 20, 2012 at 5:57 AM, Jason A. Donenfeld <Jason at zx2c4.com> wrote:
> At the moment, no. But this would be trivial to add. Not sure it's
> worth the added clutter though.


Whoa hey, man pages for the win. From gpg(1):

       --group name=value1
              Sets  up  a named group, which is similar to aliases in
email programs.
              Any time the group name is a recipient (-r or
--recipient), it will  be
              expanded  to  the  values specified. Multiple groups
with the same name
              are automatically merged into a single group.

              The values are key IDs or fingerprints,  but  any  key
description  is
              accepted.  Note  that  a value with spaces in it will be
treated as two
              different values. Note also there is only one level  of
expansion  ---
              you  cannot  make an group that points to another group.
When used from
              the command line, it may be necessary to quote  the
argument  to  this
              option to prevent the shell from treating it as multiple
arguments.


So it looks like you set up a gpg group using the --group option, and
then just use "pass init" with that group name. Then, pass will
encrypt using many keys.

Presto!



More information about the Password-Store mailing list