Specify UID for --sign-key

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Feb 26 03:49:26 CET 2016


Hi Muri--

On Thu 2016-02-25 18:59:53 +0100, Muri Nicanor <muri+gnupg-users at immerda.ch> wrote:
> is it possible to specifiy the uid for --sign-key (so i don't have to go
> through the gpg --edit dialog)? i tried using
> =Name <mail at foo.tld>
> or just
> <mail at foo.tld>
> as described on [0], but i always get asked if i want to sign all the
> uids and then i have to say no and choose the one i specified...

In GnuPG 2.1:

       --quick-sign-key fpr [names]

       --quick-lsign-key fpr [names]
              Directly sign a key from the passphrase without any further user
              interaction.  The fpr must be the verified  primary  fingerprint
              of a key in the local keyring. If no names are given, all useful
              user ids are signed; with given [names]  only  useful  user  ids
              matching  one  of theses names are signed.  The command --quick-
              lsign-key marks the signatures as  non-exportable.   If  such  a
              non-exportable  signature  already  exists  the --quick-sign-key
              turns it into a exportable signature.

              This command uses reasonable defaults and thus does not  provide
              the  full  flexibility of the "sign" subcommand from --edit-key.
              Its intended use is to help unattended key signing by  utilizing
              a list of verified fingerprints.

hth,

        --dkg



More information about the Gnupg-users mailing list