nerdexam
CompTIA

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.

Security

Question

By default, when verifying a signed file or a file with a detached signature, which keyring is used to search for public keys?

Options

  • A~/.gnupg/trustdb.gpg
  • B~/.gnupg/secring.gpg
  • C~/.gnupg/trustedkeys.gpg
  • D~/.gnupg/pubring.gpg

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    8% (2)
  • C
    88% (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.

A~/.gnupg/trustdb.gpg

~/.gnupg/trustdb.gpg is the trust database, which stores information about the trust level of keys, not the public keys themselves.

B~/.gnupg/secring.gpg

~/.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.

C~/.gnupg/trustedkeys.gpgCorrect

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.

D~/.gnupg/pubring.gpg

~/.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

#GPG#keyring#public keys

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice