nerdexam
Linux_Foundation

LFCS · 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…

The correct answer is B. gpg recvkeys UID. To fetch a public key from a public keyserver using a UID or fingerprint, the gpg recvkeys command is the correct utility.

Submitted by kwame.gh· Apr 18, 2026Essential Commands

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

(63 responses)
  • A
    2% (1)
  • B
    87% (55)
  • C
    3% (2)
  • D
    8% (5)

Why each option

To fetch a public key from a public keyserver using a UID or fingerprint, the `gpg recvkeys` command is the correct utility.

Agpg findkeys UID

`gpg findkeys` is not a standard GPG command for retrieving keys from a server; `search-keys` would be used for searching, and then `recv-keys` for retrieval.

Bgpg recvkeys UIDCorrect

The `gpg --recv-keys <UID>` command is specifically designed to retrieve public keys from a configured public key server, using identifiers like User ID, key ID, or fingerprint, and add them to the local public keyring.

Cgpg getkeys UID

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

Dgpg refreshkeys UID

`gpg refreshkeys` updates existing keys already present in the local keyring with potentially newer information from a key server, rather than fetching new ones.

Concept tested: GPG public key retrieval

Source: https://gnupg.org/documentation/manuals/gnupg/Receive-Keys.html

Topics

#gpg#Public Key Cryptography#Key Management#Key Server

Community Discussion

No community discussion yet for this question.

Full LFCS Practice