Changing the email address of a key

Werner Koch wk at gnupg.org
Tue Aug 28 10:37:57 CEST 2012


On Mon, 27 Aug 2012 23:57, pants at cs.hmc.edu said:

> You can add or delete the names and emails associated with a key using
> gpg --edit-key and the adduid and deluid commands, respectively.

You may use "deluid" only if you never published your public key.  The
better choice is "revuid".  Thus if you have a new mail address, you use

  gpg --edit-key YOURKEYID

  addkey

# Now follow the prompts

# If you don't need the old mail address anymore, you may use

  uid N
  revuid

# Where N is the number of the UID.  The command will mark it in the
# list.  REVUID then creates a revocation for the user id.

# Finally save your changes

  # save

and then send your key back to the keyservers ("gpg --send-key YOURKEYID")


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-users mailing list