kr icon indicating copy to clipboard operation
kr copied to clipboard

Support editing PGP public key emails

Open ghost opened this issue 7 years ago • 5 comments

The first time I created a gpg key and used the mail ( starting at rostovslipknot@) now, I want to change this gpg key, do I "unpair" , re-generate ssh key and gpg key ( specifically removed the "kr" on the desktop) and now when I create a gpg key with a different email, the key is created still with the previous, please tell me this is a bug or I something wrong doing the right thing, thanks in advance Old email screen shot 2018-02-08 at 16 36 31

New email screen shot 2018-02-08 at 16 41 53

ghost avatar Feb 08 '18 13:02 ghost

Krypton keeps the 3 emails most recently used to sign git commits. If you have gpg installed, you can import the Krypton PGP public key into gpg using kr me pgp | gpg, remove the emails you do not want using the GPGTools gui, and re-export the public key from there.

We realize email management is a problem right now and will be improving this in the future

kcking avatar Feb 08 '18 16:02 kcking

@kcking uh, to change the public key, I need the private key, and it's on the phone. :/

ghost avatar Feb 08 '18 16:02 ghost

Do you have GPGTools installed? To remove an email you do not need the private key.

kcking avatar Feb 08 '18 17:02 kcking

Seems something went wrong with the detection here, and it added itself, as well as one of my previous gpg keys (id C5E635E7204D06FB), rather than any emails:

> gpg --fingerprint

/Users/balupton/.gnupg/pubring.gpg
----------------------------------
pub   rsa4096 2018-02-13 [SC]
      7C2F 2D79 25EB 0C6C 1D8A  85FE 21BF F9C0 99CA F2A7
uid           [ultimate] Benjamin Lupton <[email protected]>
uid           [ultimate] 21BFF9C099CAF2A7
uid           [ultimate] C5E635E7204D06FB

I am unsure if the uids of 21BFF9C099CAF2A7 and C5E635E7204D06FB are even valid or useful here? or if they should be removed? Can someone advise please.

balupton avatar Feb 16 '18 00:02 balupton

For removing an email with the GPGTools on Mac:

brew cask install gpg-suite

Then open up the GPG Keychain app. Double click the key. It will show the UIDS on the left panel. Then select the UID you want to remove, click the cog icon, and click remove.

screen shot 2018-02-16 at 8 26 15 am

balupton avatar Feb 16 '18 00:02 balupton