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.
Question
Options
- Agpg findkeys UID
- Bgpg recvkeys UID
- Cgpg getkeys UID
- Dgpg refreshkeys UID
How the community answered
(24 responses)- B92% (22)
- C4% (1)
- D4% (1)
Why each option
To encrypt data for someone, their public key must be obtained, typically from a public key server if available.
gpg findkeys is not a standard GPG command for fetching keys from a server.
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.
gpg getkeys is not a standard GPG command for fetching keys from a server.
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
Community Discussion
No community discussion yet for this question.