Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add a nickname to a gpg key [closed]

Tags:

gnupg

pgp

I want to add, additionally to my real name, my nickname (or alias or AKA) which I am better acknowledged on the web; into my public pgp key.

What's the proper way to get this done on gpg?

like image 381
Akronix Avatar asked Oct 19 '22 21:10

Akronix


1 Answers

There are multiple choices. Which way to go for depends on your needs and preferences. A brief discussion about advantages and disadvantages of the individual ones:

  • The "usenet" style, adding the pseudonym in quotes between the given and last name:

    John 'Random Hacker' Doe <[email protected]>
    

    I'd prefer this version, making it clear what the pseudonym part is and not misusing the comment field, but it might prevent some (few) from signing your key if they're strict in their naming policy.

  • (Mis)using the comment field:

    John Doe (Random Hacker) <[email protected]>
    

    Probably with less problems while getting signatures for your key, but the use of the comment field is often regarded critical.

  • Adding a separate user ID:

    John Doe <[email protected]>
    Random Hacker <[email protected]>
    

    Especially a good idea when having a separate mail address for the nick name. You probably will not get signatures on that user ID. If you're going for this way, consider putting the pseudonym in quotes anyway and maybe even create a separate key for it.

like image 89
Jens Erat Avatar answered Oct 23 '22 00:10

Jens Erat