nerdexam
CompTIA

LX0-104 · Question #404

Someone who wishes to receive an encrypted file has provided a key UID and a key fingerprint for verification to the data sender. Assuming that this key is on a public keyserver, what command will fet

The correct answer is B. gpg recvkeys UID. To encrypt data for someone, their public key must be obtained, typically from a public key server if available.

Security

Question

Someone who wishes to receive an encrypted file has provided a key UID and a key fingerprint for verification to the data sender. Assuming that this key is on a public keyserver, what command will fetch the public key from the server?

Options

  • Agpg findkeys UID
  • Bgpg recvkeys UID
  • Cgpg getkeys UID
  • Dgpg refreshkeys UID

How the community answered

(24 responses)
  • B
    92% (22)
  • C
    4% (1)
  • D
    4% (1)

Why each option

To encrypt data for someone, their public key must be obtained, typically from a public key server if available.

Agpg findkeys UID

gpg findkeys is not a standard GPG command for fetching keys from a server.

Bgpg recvkeys UIDCorrect

The gpg --recv-keys UID command is used to retrieve a specific public key (identified by its User ID or key ID) from a configured public key server and add it to your local public keyring.

Cgpg getkeys UID

gpg getkeys is not a standard GPG command for fetching keys from a server.

Dgpg refreshkeys UID

The gpg --refresh-keys command is used to update existing public keys in your keyring from a key server, not to initially fetch a new key.

Concept tested: GPG fetching public keys from key server

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

Topics

#GPG#public key retrieval#key server

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice