nerdexam
CompTIA

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.

Security

Question

Which command is used to add an additional name, email address and comment to an existing private key?

Options

  • Agpg editkey name followed with the adduid command.
  • Bgpg addsubkey name
  • Cgpg addalias name
  • Dgpg genalias name

How the community answered

(30 responses)
  • A
    90% (27)
  • B
    3% (1)
  • D
    7% (2)

Why each option

GPG allows associating multiple identities (names, email addresses, comments) with a single private key, enhancing its versatility.

Agpg editkey name followed with the adduid command.Correct

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.

Bgpg addsubkey name

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.

Cgpg addalias name

gpg addalias is not a standard GPG command.

Dgpg genalias name

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

#GPG#private key#key modification

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice