Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two emails I use frequently, for both of which I'd like to use PGP keys generated/managed by GnuPG. I'd like to avoid creating a different key pair for each email, if possible, as that's unnecessary for my situation, i.e. I use the two emails interchangeably.

Is there a way to do this?

I am using Mac OS X 10.5 and Ubuntu 11.04, and Thunderbird 3.1.10.

Thanks in advance!

share|improve this question
    
Which OS do you use? What is your mail client of choice? –  Kirk Jun 5 '11 at 15:40

2 Answers 2

up vote 28 down vote accepted

If you want to add an user ID to an existing key from the command line (your input is in bold):

  $ gpg --edit-key <key-id>
  gpg> adduid
  Real Name: <name>
  Email address: <email>
  Comment: <comment or Return to none>
  Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
  Enter passphrase: <password>
  gpg> uid <uid>
  gpg> trust
  Your decision? 5
  Do you really want to set this key to ultimate trust? (y/N) y
  gpg> save
share|improve this answer
    
What does gpg> uid <uid> do? Is <uid> just my email address foo@bar.com? –  Computist Jun 6 '11 at 1:43
    
@lumeng.dev: is the number right before your new user ID (the list is shown after adduid). Once you enter this command, there should be an asterisk near it, indicating that this is the uid trust will operate on. –  Aluísio A. S. G. Jun 6 '11 at 1:51
    
Do I have to add new identities to the master key pair or can I add new identities directly to subkeys? –  Kal Aug 16 at 14:14

Assuming that you use Enigmail for GPG support in Thunderbird, you can simply use the "OpenGPG Security" Tab for each of your identities. You can get there via

Account Preferences -> Manage Identities -> Edit.

Alternatively, you can select from the Menu:

 OpenPGP -> Key Management -> [Right-click on your key] -> Manage User IDs

And then add more IDs to your key.

share|improve this answer
1  
Don't forget to add an user ID for the second email address to your key, through OpenPGP -> Manage keys. –  grawity Jun 5 '11 at 19:48
    
@grawity, I added this in the edited answer –  Mateng Aug 16 '13 at 19:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.