One GnuPG/PGP key pair, two emails

emailgnupgpgp

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!

Best Answer

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
$ gpg --send-keys <key-id>
Related Question