nerdexam
CompTIA

LX0-104 · Question #400

Which GPG command is used to sign a public key? (Select TWO correct answers)

The correct answer is B. gpg signkey UID D. gpg editkey UID followed with the sign command.. GPG allows you to sign another person's public key, asserting that you trust its authenticity and connection to the stated identity.

Security

Question

Which GPG command is used to sign a public key? (Select TWO correct answers)

Options

  • Agpg signpublickey UID
  • Bgpg signkey UID
  • Cgpg sign UID
  • Dgpg editkey UID followed with the sign command.
  • Egpg editkey UID followed with the confirm command.

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    87% (33)
  • C
    3% (1)
  • E
    8% (3)

Why each option

GPG allows you to sign another person's public key, asserting that you trust its authenticity and connection to the stated identity.

Agpg signpublickey UID

gpg signpublickey UID is not a standard GPG command for signing public keys.

Bgpg signkey UIDCorrect

The gpg --sign-key UID command directly signs the specified public key (identified by its User ID or key ID) using your own private key, indicating your trust in its validity.

Cgpg sign UID

gpg sign UID is typically used to sign data or files, not to sign other public keys directly within the keyring.

Dgpg editkey UID followed with the sign command.Correct

The gpg --edit-key UID command opens an interactive menu for the specified key, where the 'sign' command can then be executed to sign the public key after verification.

Egpg editkey UID followed with the confirm command.

The 'confirm' command within gpg --edit-key is used to confirm changes made to a key, not to sign a public key itself.

Concept tested: GPG public key signing

Source: https://www.gnupg.org/gph/en/manual/x110.html

Topics

#GPG#public key#key signing#cryptography

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice