signing options

David Shaw dshaw at
Mon Feb 9 12:16:50 CET 2004

On Mon, Feb 09, 2004 at 02:34:23AM -0500, Atom 'Smasher' wrote:
> from the man page:
>       -u, --local-user name
> 	Use name as the user ID to sign with.  This option is
> 	silently ignored for the list commands, so that it can be
> 	used in an options file.
>       --default-key name
> 	Use name as default user ID for signatures.  If this is not
> 	used the default user ID is the first user ID found in the
> 	secret keyring.
> these two options seem to do the same thing, FTMP, but they must do
> something differently (or there wouldn't be two of them). right?

-u or --local-user means: "use this key to sign with".

--default-key means: "use this key to sign with unless I'm using -u"

> what exactly does --local-user silently ignore? that part doesn't make
> sense to me.

It means that you can do "-u foo --list-keys" without any harm.


More information about the Gnupg-users mailing list