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.
Question
Options
- Agpg findkeys UID
- Bgpg recvkeys UID
- Cgpg getkeys UID
- Dgpg refreshkeys UID
How the community answered
(63 responses)- A2% (1)
- B87% (55)
- C3% (2)
- D8% (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.
`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.
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.
`gpg getkeys` is not a standard GPG command for retrieving keys from a server.
`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
Community Discussion
No community discussion yet for this question.