Change default key?
Fri Sep 28 00:14:02 2001
-----BEGIN PGP SIGNED MESSAGE-----
On Donnerstag, 27. September 2001 21:04, David Dorward wrote:
> Now I want to sign it with the new key I generated for my new primary
> email address, how can I change the DEFAULT key used (in a config
> file - not the command line)? I haven't been able to find anything
> helpful in the documentation or the archives, but perhaps I just
> haven't found the right terms to look for?
- From 'man gpg':
Long options can be put in an options file (default
"~/.gnupg/options"). Do not write the 2 dashes, but sim
ply the name of the option and any required arguments.
Lines with a hash as the first non-white-space character
are ignored. Commands may be put in this file too, but
that does not make sense.
gpg recognizes these options:
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.
Ergo, simply add 'default-key' followed by the key id of your new key
to the configuration file.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----