LX0-104 · Question #403
Which command is used to add an additional name, email address and comment to an existing private key?
The correct answer is A. gpg editkey name followed with the adduid command.. GPG allows associating multiple identities (names, email addresses, comments) with a single private key, enhancing its versatility.
Question
Options
- Agpg editkey name followed with the adduid command.
- Bgpg addsubkey name
- Cgpg addalias name
- Dgpg genalias name
How the community answered
(30 responses)- A90% (27)
- B3% (1)
- D7% (2)
Why each option
GPG allows associating multiple identities (names, email addresses, comments) with a single private key, enhancing its versatility.
The gpg --edit-key name command opens an interactive menu for the specified key, where the 'adduid' command can be used to add an additional User ID (UID) with a new name, email address, and comment.
The addsubkey command within gpg --edit-key is used to add an encryption or signing subkey to the master key, not an additional user ID.
gpg addalias is not a standard GPG command.
gpg genalias is not a standard GPG command.
Concept tested: GPG adding multiple user IDs to key
Source: https://www.gnupg.org/gph/en/manual/x117.html
Topics
Community Discussion
No community discussion yet for this question.