tag:gpgtools.tenderapp.com,2011-11-04:/discussions/beta/523-switch-between-multiple-private-keys-select-private-key-for-same-identityies-when-writing-mailGPGTools: Discussion 2017-02-23T21:46:02Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/356245642014-12-25T19:56:23Z2014-12-25T19:56:23Zswitch between multiple private keys / select private key - for same identity/ies when writing mail<div><p>Hi Niels,</p>
<p>this area could indeed use some tweaking. Could you try and see,
if the situation improves and the new key is used by default if you
set it as "Default Key" in GPGPreferences > Settings.</p>
<p>That way it should be used to sign new mails from that Mail
Account and the old key should still be around to decrypt any
incoming mails to that old key or for existing mails encrypted with
the pub key of your old key.</p>
<p>Let me know if that worked.</p>
<p>All the best,<br>
steve</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/356245642015-01-06T20:04:54Z2015-01-06T20:04:54Zswitch between multiple private keys / select private key - for same identity/ies when writing mail<div><p>No content.</p></div>Niels Dettenbach (Syndicat.com)tag:gpgtools.tenderapp.com,2011-11-04:Comment/356245642015-02-05T10:40:20Z2017-02-23T21:46:01Zswitch between multiple private keys / select private key - for same identity/ies when writing mail<div><p>I have the same issue and the fix suggested above didn't work
for me - I restarted Mail and tried again with a new message (ie,
didn't retry with the same draft, in case the key was cached) and
it still tried to sign with the old key.</p>
<p>Although in my case this is the first time using Mail at all (I
am testing switching over from Thunderbird) and I always had those
two keys in my keychain.</p></div>pennytag:gpgtools.tenderapp.com,2011-11-04:Comment/356245642015-02-05T23:54:54Z2015-02-05T23:54:54Zswitch between multiple private keys / select private key - for same identity/ies when writing mail<div><p>Hi Niels,</p>
<p>your reply did not make it here. Please visit this discussion
with your webbrowser and reply from there.</p>
<p>@Penny: So you do have two keys for the same mail address. Are
you using both or is one of the keys revoked? Are you in the midst
of transitioning from one key to another?</p>
<p>If two keys exist for the same mail address, you will find a
selection (showing the Short ID) when you expand the "From"
selection while composing a new mail.</p>
<p>Please let me know if that works for you.</p>
<p>All the best,<br>
steve</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/356245642015-02-06T10:14:50Z2017-02-23T21:46:01Zswitch between multiple private keys / select private key - for same identity/ies when writing mail<div><p>Hi Steve, thanks for replying! Yes, two keys for the same email
address. I haven't revoked the old one yet. Anyway I don't get any
key selection in the From field of a new email (see attached
screenshot), yet in the gpg Preferences system preferences pane, it
autodetects 4 keys I control and offers all of them as options for
the default. (See second screenshot).</p>
<p>Also sorry if I hijacked a thread about a different issue! Oops
:)</p>
<p>Penny</p></div>pennytag:gpgtools.tenderapp.com,2011-11-04:Comment/356245642015-02-06T10:28:48Z2015-02-06T10:28:48Zswitch between multiple private keys / select private key - for same identity/ies when writing mail<div><p>Penny, please open GPG Keychain and double click your sec/pub
key. Then see if the key is still valid and post the key
capabilities here for each key.</p>
<p>Next check if all UserIDs are still valid. And at last check if
the subkey is still valid.</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/356245642015-02-06T10:33:52Z2017-02-23T21:46:02Zswitch between multiple private keys / select private key - for same identity/ies when writing mail<div><p>Huh. Both keys are the same...</p>
<p>Validity: unknown. Capabilities esc. All User IDs have validity
unknown and the subkey also has validity unknown.</p></div>pennytag:gpgtools.tenderapp.com,2011-11-04:Comment/356245642015-02-06T10:36:33Z2015-02-06T10:36:33Zswitch between multiple private keys / select private key - for same identity/ies when writing mail<div><p>Sorry I meant if any of those components are expired. Could you
hop on our live chat: <a href=
"https://www.hipchat.com/gi8zHW4K3">https://www.hipchat.com/gi8zHW4K3</a></p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/356245642015-02-06T13:06:21Z2015-02-06T13:06:21Zswitch between multiple private keys / select private key - for same identity/ies when writing mail<div><p>Resolved via LiveSupport. Penny thanks for helping us debug this
issue.</p></div>Steve