How to set default subkeys?

Werner Koch wk at
Thu Apr 7 16:55:10 CEST 2005

On Thu, 7 Apr 2005 15:21:43 +0200, Gerhard Siegesmund said:

> So, my question is: How do I set the default keys to use? Especially if
> I make my new subkeys public. How do the people know which encryption
> subkey to use?

You may append an exclamation mark to the keyid of the subkey (like
"0x12345678!") to force gpg to use exactly that subkey.  Other people
can't know and thus will encrypt to an arbitrary valid subkey (gpg
uses the latest one).

> How can I set the key to use for encryption (if I encrypt things for
> myself, or for the encrypt-to-Option.)

Same as above.



More information about the Gnupg-users mailing list