tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/1118-re-gpgtools-two-emails-one-public-key-everythingGPGTools: Discussion 2017-09-14T12:09:11Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/146055062012-03-19T18:17:22Z2012-03-19T18:17:22ZRe: [GPGTools] two emails one public key? [Everything]<div><p>Hi kbrown,</p>
<p>we've recently added this feature via defaults.<br>
Please install the GPGMail nightly from <a href=
"http://nightly.gpgtools.org">http://nightly.gpgtools.org</a>.</p>
<p>After that open Terminal.app and type the following. Press enter
when done:</p>
<p>defaults write org.gpgtools.common PublicKeyUserMap -dict-add
email fingerprint</p>
<p>Replace email with your friend's email which is not included in
the public key and the fingerprint with your friend's key's
fingerprint.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/146055062012-03-19T18:18:07Z2012-03-19T18:18:07ZRe: [GPGTools] two emails one public key? [Everything]<div><p>After that, please restart Mail.app and let us know if it
worked!<br>
If for any reason it shouldn't please post the output of</p>
<p>defaults read org.gpgtools.common PublicKeyUserMap</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/146055062012-03-19T20:03:59Z2012-03-19T20:03:59ZRe: [GPGTools] two emails one public key? [Everything]<div><p>I downloaded and installed GPGMail-trunk-106896.dmg from
<a href="http://nightly.gpgtools.org">http://nightly.gpgtools.org</a>.</p>
<p>However this appears to install older version of GPG Keychain
Access than what I already had, 1.0b6, I had 1.0b7.</p>
<p>I don't quite know what you mean by'email with your friend's
email which is not included in the public key ', I assume you mean
in GPG Keychain Access.</p>
<p>I want to be able to send to both emails.</p>
<p>After doing:<br>
defaults write org.gpgtools.common PublicKeyUserMap -dict-add email
fingerprint<br>
I see<br>
defaults read org.gpgtools.common PublicKeyUserMap<br>
{</p>
<pre>
<code>email = fingerprint;</code>
</pre>
<p>}</p>
<p>Ken</p></div>kbrowntag:gpgtools.tenderapp.com,2011-11-04:Comment/146055062012-03-19T20:05:46Z2012-03-19T20:05:46ZRe: [GPGTools] two emails one public key? [Everything]<div><p>Could you attach a screenshot showing your friend's key?<br>
Then I can tell you exactly what to type.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/146055062012-03-19T20:27:48Z2012-03-19T20:27:48ZRe: [GPGTools] two emails one public key? [Everything]<div><p>Ok, I think I'm getting the picture, now I tried:</p>
<p>defaults write org.gpgtools.common PublicKeyUserMap -dict-add
<a href="mailto:email2@domain.com">email2@domain.com</a> 028B B4AE
1BEF E9F7 D0A9 550D 5D5D 6096 020F ED95<br>
But got this error:<br>
2012-03-19 14:14:01.825 defaults[10666:707] Key ED95 lacks a
corresponding value</p>
<p>The email that works is the one with red domain.com in the
attached screenshot.</p>
<p>Thx,<br>
Ken</p></div>kbrowntag:gpgtools.tenderapp.com,2011-11-04:Comment/146055062012-03-19T20:33:40Z2012-03-19T20:33:40ZRe: [GPGTools] two emails one public key? [Everything]<div><p>Perfect, that's exactly what you need to do. Only thing missing
is, that you need to remove the spaces of the fingerprint, so that
the final command reads:</p>
<p>defaults write org.gpgtools.common PublicKeyUserMap -dict-add
<a href="mailto:email2@domain.com">email2@domain.com</a>
028BB4AE1BEFE9F7D0A9550D5D5D6096020FED95</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/146055062012-03-19T20:55:12Z2012-03-19T20:55:12ZRe: [GPGTools] two emails one public key? [Everything]<div><p>Ok, now I see:<br>
defaults read org.gpgtools.common PublicKeyUserMap<br>
{</p>
<pre>
<code>"email2@domain.com" = 028BB4AE1BEFE9F7D0A9550D5D5D6096020FED95;
email = fingerprint;</code>
</pre>
<p>}</p>
<p>Then I restarted both Mail and GPG Keychain Access, I do not
however see the added email2 in GPG Keychain Access 1.0b7.</p>
<p>I won't be able to test for real awhile, however the lock in a
new email looks like it will work now.</p>
<p>Why doesn't email2 show in the list in GPG Keychain Access?</p>
<p>Thx!<br>
Ken</p></div>kbrowntag:gpgtools.tenderapp.com,2011-11-04:Comment/146055062012-03-19T20:58:06Z2012-03-19T20:58:06ZRe: [GPGTools] two emails one public key? [Everything]<div><p>If you see the active lock in Mail now it is in fact
working.<br>
It's not supposed to show up in GPG Keychain Access since this
information is currently only read by GPGMail, it's a work
around.<br>
The actual way this issue should be dealt with is asking your
friend to add a UID to their key with the second email address and
send you the updated public key.<br>
That way it would show up in GPG Keychain Access and be available
in GPGMail.<br>
But since this is not always possible, we've implemented the work
around in GPGMail.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/146055062012-03-19T21:32:16Z2012-03-19T21:32:16ZRe: [GPGTools] two emails one public key? [Everything]<div><p>Ok, great, that clears it up a bit.<br>
Looks like it should work now.<br>
Thx,<br>
Ken</p></div>kbrowntag:gpgtools.tenderapp.com,2011-11-04:Comment/146055062012-03-19T21:35:07Z2012-03-19T21:35:07ZRe: [GPGTools] two emails one public key? [Everything]<div><p>Perfect!<br>
I'll close this. Feel free to open a new discussion if you run into
problems again :)</p></div>Luke Le