LX0-104 · Question #406
By default, when verifying a signed file or a file with a detached signature, which keyring is used to search for public keys?
The correct answer is C. ~/.gnupg/trustedkeys.gpg. For integrity checks using GPG, the system looks for the signer's public key within a designated keyring to confirm the digital signature's validity.
Question
Options
- A~/.gnupg/trustdb.gpg
- B~/.gnupg/secring.gpg
- C~/.gnupg/trustedkeys.gpg
- D~/.gnupg/pubring.gpg
How the community answered
(25 responses)- A4% (1)
- B8% (2)
- C88% (22)
Why each option
For integrity checks using GPG, the system looks for the signer's public key within a designated keyring to confirm the digital signature's validity.
~/.gnupg/trustdb.gpg is the trust database, which stores information about the trust level of keys, not the public keys themselves.
~/.gnupg/secring.gpg (or private-keys-v1.d in newer GnuPG) stores private keys, which are used for signing or decrypting, not for verifying other people's signatures.
When performing signature verification, GPG often consults the ~/.gnupg/trustedkeys.gpg file by default to search for the public key of the signer. This keyring is specifically intended for storing public keys that are considered trusted for verifying signatures.
~/.gnupg/pubring.gpg is the main public keyring containing all imported public keys, but in many verification contexts, GPG prioritizes trustedkeys.gpg as the default location for keys explicitly relied upon for signature validation.
Concept tested: GPG default trusted public keyring
Topics
Community Discussion
No community discussion yet for this question.