Re: [GPGTools] two emails one public key? [Everything]

kbrown's Avatar

kbrown

19 Mar, 2012 06:09 PM

Ok, I've been successfully sending and receiving encrypted emails, but the one outstanding issue is that Lion Mail does not let me encrypt to the fellow who sends me messages from two different emails. I have key for the one email which works ok, but I'd like to add the second email somehow for outgoing encryption.
I do not see a way to do that.
Any tips appreciated.
Thx,
Ken

  1. Support Staff 1 Posted by Luke Le on 19 Mar, 2012 06:17 PM

    Luke Le's Avatar

    Hi kbrown,

    we've recently added this feature via defaults.
    Please install the GPGMail nightly from http://nightly.gpgtools.org.

    After that open Terminal.app and type the following. Press enter when done:

    defaults write org.gpgtools.common PublicKeyUserMap -dict-add email fingerprint

    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.

  2. Support Staff 2 Posted by Luke Le on 19 Mar, 2012 06:18 PM

    Luke Le's Avatar

    After that, please restart Mail.app and let us know if it worked!
    If for any reason it shouldn't please post the output of

    defaults read org.gpgtools.common PublicKeyUserMap

  3. 3 Posted by kbrown on 19 Mar, 2012 08:03 PM

    kbrown's Avatar

    I downloaded and installed GPGMail-trunk-106896.dmg from http://nightly.gpgtools.org.

    However this appears to install older version of GPG Keychain Access than what I already had, 1.0b6, I had 1.0b7.

    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.

    I want to be able to send to both emails.

    After doing:
    defaults write org.gpgtools.common PublicKeyUserMap -dict-add email fingerprint
    I see
    defaults read org.gpgtools.common PublicKeyUserMap
    {
        email = fingerprint;
    }

    Ken

  4. Support Staff 4 Posted by Luke Le on 19 Mar, 2012 08:05 PM

    Luke Le's Avatar

    Could you attach a screenshot showing your friend's key?
    Then I can tell you exactly what to type.

  5. 5 Posted by kbrown on 19 Mar, 2012 08:27 PM

    kbrown's Avatar

    Ok, I think I'm getting the picture, now I tried:

    defaults write org.gpgtools.common PublicKeyUserMap -dict-add [email blocked] 028B B4AE 1BEF E9F7 D0A9 550D 5D5D 6096 020F ED95
    But got this error:
    2012-03-19 14:14:01.825 defaults[10666:707] Key ED95 lacks a corresponding value

    The email that works is the one with red domain.com in the attached screenshot.

    Thx,
    Ken

  6. Support Staff 6 Posted by Luke Le on 19 Mar, 2012 08:33 PM

    Luke Le's Avatar

    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:

    defaults write org.gpgtools.common PublicKeyUserMap -dict-add [email blocked] 028BB4AE1BEFE9F7D0A9550D5D5D6096020FED95

  7. 7 Posted by kbrown on 19 Mar, 2012 08:55 PM

    kbrown's Avatar

    Ok, now I see:
    defaults read org.gpgtools.common PublicKeyUserMap
    {
        "[email blocked]" = 028BB4AE1BEFE9F7D0A9550D5D5D6096020FED95;
        email = fingerprint;
    }

    Then I restarted both Mail and GPG Keychain Access, I do not however see the added email2 in GPG Keychain Access 1.0b7.

    I won't be able to test for real awhile, however the lock in a new email looks like it will work now.

    Why doesn't email2 show in the list in GPG Keychain Access?

    Thx!
    Ken

  8. Support Staff 8 Posted by Luke Le on 19 Mar, 2012 08:58 PM

    Luke Le's Avatar

    If you see the active lock in Mail now it is in fact working.
    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.
    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.
    That way it would show up in GPG Keychain Access and be available in GPGMail.
    But since this is not always possible, we've implemented the work around in GPGMail.

  9. 9 Posted by kbrown on 19 Mar, 2012 09:32 PM

    kbrown's Avatar

    Ok, great, that clears it up a bit.
    Looks like it should work now.
    Thx,
    Ken

  10. Support Staff 10 Posted by Luke Le on 19 Mar, 2012 09:35 PM

    Luke Le's Avatar

    Perfect!
    I'll close this. Feel free to open a new discussion if you run into problems again :)

  11. Luke Le closed this discussion on 19 Mar, 2012 09:35 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac