[Gpg4win-users-en] Changing which keypair is the default key

Bernhard Reiter bernhard at intevation.de
Wed Apr 24 09:31:00 CEST 2024


Am Dienstag 23 April 2024 20:08:58 schrieb gpg4win--- via Gpg4win-users-en:
> Hello - I'm trying to change which keypair is my default key. I couldn't
> see a way to do this within Kleopatra (please let me know if there is!) 

one way to select the default key in the crypto backend is to set
  default-key [fingerprint]
in the gpg.conf configuration file with a text editor.
(You can create the file, if it does not exist.)

> so  after reading p65 of the GnuPG manual
> (https://www.gnupg.org/documentation/manuals/gnupg.pdf) I tried each of the
> following from the command line:
> gpg --default-key [fingerprint]
> gpg --default-key [email address]
> gpg --default-key [name]
> gpg --default-key [Key ID]
> These gave me "WARNING: no command supplied. Trying to guess what you
> mean...Go ahead and type your message".

The command line usage of the option is only for this very command, so
  gpg --default-key  [fingerprint] --sign ...
will work, but is not permanent. For it to be permanent is has to go into the
configuration file.

> I'm using GPG4Win 4.1.0 / GnuPG 2.4.0.

There is a newer version available which you can download on gpg4win.org.


https://intevation.de/~bernhard   +49 541 33 508 3-3
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.wald.intevation.org/pipermail/gpg4win-users-en/attachments/20240424/6acab620/attachment.sig>

More information about the Gpg4win-users-en mailing list