tag:gpgtools.tenderapp.com,2011-11-04:/discussions/support-plan/1190-gpg-mail-gpg-mail-with-2-identical-yubikeysGPGTools: Discussion 2020-02-12T08:34:34Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/480736642020-02-10T16:38:56Z2020-02-10T16:38:56ZGPG Mail: GPG Mail with 2 identical Yubikeys<div><p>Hi Heiko,</p>
<p>since they have the same UIDs (email addresses) associated, there's not really a way of knowing which one to pick. Could you try to change the default key in <code>System Preferences › GPG Suite</code>? That might do it (make sure to restart Mail after the change). Is there a reason why you have two almost identical keys?</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/480736642020-02-10T17:19:52Z2020-02-10T17:19:52ZGPG Mail: GPG Mail with 2 identical Yubikeys<div><p>Hi Le.</p>
<p>The second Yubikey is my backup key in case the first one is not working.<br>
I would like to make sure, the second one working with GPG Mail.</p>
<p>Question: How do I change the default-key?<br>
I cannot select a different Key.</p>
<p>I thought the problem is the pinentry on my Mac, because it prompts to insert the first key.</p></div>heiko.goestag:gpgtools.tenderapp.com,2011-11-04:Comment/480736642020-02-10T18:37:05Z2020-02-10T18:37:05ZGPG Mail: GPG Mail with 2 identical Yubikeys<div><p>Scheinen beide Keys in GPG Keychain auf? Ansonsten ist der erste Schritt den 2. Key zu importieren, indem du den Yubikey einsteckst und dann <code>gpg --card-status</code> ausführst.</p>
<p>Sollten bereits beide in GPG Keychain dargestellt werden, solltest du den default Schlüssel im Dropdown in <code>Systemeinstellungen > GPG Suite</code> festlegen können.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/480736642020-02-11T11:49:32Z2020-02-11T11:49:32ZGPG Mail: GPG Mail with 2 identical Yubikeys<div><p>Hi Le.</p>
<p>I think, I located my problem:</p>
<p>I programmed my second YubiKey with the same keys as my first one.<br>
So they have the same id.<br>
But they don’t have the same serial number (card number).<br>
If I understood correctly the secret key I wrote to my second YubiKey includes the card number.<br>
That is the reason, pin entry asks for the card number of the first YubiKey.<br>
What I wanted to achieve is: both YubiKeys should have the same PGP-Keys.</p>
<p>Am I correct with my analysis?<br>
Is there a way to achieve what I would like?</p>
<p>Best regards from Heiko</p></div>heiko.goestag:gpgtools.tenderapp.com,2011-11-04:Comment/480736642020-02-11T14:37:48Z2020-02-11T14:37:48ZGPG Mail: GPG Mail with 2 identical Yubikeys<div><p>Hi Le.</p>
<p>I have solved the problem :-) (after reading many threads)</p>
<p>The gpg-agent is connected to the YubiKey´s card no.<br>
To change this connection, I inserted the second YubiKey and issued the commands:</p>
<p>gpg-connect-agent<br>
scd learn —force</p>
<p>Best regards from Heiko</p></div>heiko.goestag:gpgtools.tenderapp.com,2011-11-04:Comment/480736642020-02-11T22:10:17Z2020-02-11T22:10:17ZGPG Mail: GPG Mail with 2 identical Yubikeys<div><p>Hi Heiko,</p>
<p>thanks for update. Great to hear you were able to find the cause of this behavior and also a solution to your initial request.</p>
<p>As this is currently a private discussion, I wanted to ask if it would be ok with you, to make it public. Maybe other users search the internet for the same problem and this solution might be helpful to them.</p>
<p>So if you let us know if that is ok, I would switch this discussion to public.</p>
<p>All the best,<br>
Steve</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/480736642020-02-12T06:12:25Z2020-02-12T06:12:25ZGPG Mail: GPG Mail with 2 identical Yubikeys<div><p>Yes Steve.</p>
<p>Please make it public.<br>
And thanks for your great support.</p>
<p>Viele Grüße von Heiko</p></div>heiko.goestag:gpgtools.tenderapp.com,2011-11-04:Comment/480736642020-02-12T08:34:32Z2020-02-12T08:34:32ZGPG Mail: GPG Mail with 2 identical Yubikeys<div><p>Done. Glad this is solved for you. I'm closing this discussion. Should you need further assistance or have questions you can re-open this discussion here or open a new one any time.</p>
<p>Best,<br>
Steve</p></div>Steve