Which key is used when more than one are valid?

John Clizbe JPClizbe at tx.rr.com
Mon Jun 18 04:01:39 CEST 2007

Jean-David Beyer wrote:
> John W. Moore III wrote:
>> David Shaw wrote:
>>>> On Sun, Jun 17, 2007 at 02:49:21PM -0400, Jean-David Beyer wrote:
>>>>> My gnupg file that I get with edit-keys myuid
>>>>> contains, among other things:
>>>>> sub  2048g/48FF0850  created: 2007-02-24 expires: 2008-02-24
>>>>> sub  4096g/124E0663  created: 2007-06-17 expires: 2009-06-16
>>>>> How do I know which key is used when sending e-mail?
>>>>> Or is this a Thunderbird question?
>>>> GnuPG picks the subkey for you unless explicitly told which one to
>>>> use.  In the above case, it would pick the second key, as it is more
>>>> recent.
>> However, 'Account Settings' within Thunderbird does allow You to select
>> which Key to use _if_ Enigmail is also Installed.
> It allows me to pick the key, but not the sub-key, unless I am missing
> something.

Subkeys may be explicitly specified by appending an exclamation mark (!) suffix;
eg, 0x124E0663!  This  flag  tells  GnuPG to use the specified primary or
secondary key and not to try and calculate which primary or secondary key to use.

John P. Clizbe                      Inet:   John (a) Mozilla-Enigmail.org
You can't spell fiasco without SCO. PGP/GPG KeyID: 0x608D2A10/0x18BB373A
"what's the key to success?"        / "two words: good decisions."
"what's the key to good decisions?" /  "one word: experience."
"how do i get experience?"          / "two words: bad decisions."

"Just how do the residents of Haiku, Hawai'i hold conversations?"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 663 bytes
Desc: OpenPGP digital signature
Url : /pipermail/attachments/20070617/5c248feb/attachment-0001.pgp 

More information about the Gnupg-users mailing list