Skip to content

Commit f09311c

Browse files
authored
gpgv: refresh page and add example (#19259)
* gpgv: refresh page and add example
1 parent a0f52f5 commit f09311c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

pages/common/gpgv.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
# gpgv
22

33
> Verify OpenPGP signatures.
4+
> Note: `gpgv` reads trusted pubkeys from `~/.gnupg/trustedkeys.kbx` in absence of the `--keyring` option.
5+
> See also: `gpg`.
46
> More information: <https://www.gnupg.org/documentation/manuals/gnupg/gpgv.html>.
57
6-
- Verify a signed file:
8+
- Verify a clearsigned or inline-signed file (the signature is embedded in the file itself):
79

8-
`gpgv {{path/to/file}}`
10+
`gpgv {{path/to/file.asc}}`
911

10-
- Verify a signed file using a detached signature:
12+
- Verify a detached signature (`.asc` or `.sig`) against its corresponding data file:
1113

12-
`gpgv {{path/to/signature}} {{path/to/file}}`
14+
`gpgv {{path/to/signature.asc}} {{path/to/data_file}}`
1315

14-
- Add a file to the list of keyrings (a single exported key also counts as a keyring):
16+
- Verify a detached signature using a specific public keyring or exported public key file (`.gpg` or `.kbx`):
1517

16-
`gpgv --keyring {{./alice.keyring}} {{path/to/signature}} {{path/to/file}}`
18+
`gpgv --keyring {{path/to/pubkey_or_keyring.gpg}} {{path/to/signature.asc}} {{path/to/data_file}}`
19+
20+
- Verify a detached signature using a specific public key file in plain text format (`.txt`):
21+
22+
`gpg --dearmor {{[-o|--output]}} {{path/to/pubkey.gpg}} {{path/to/pubkey.txt}} && gpgv --keyring {{path/to/pubkey.gpg}} {{path/to/signature.asc}} {{path/to/data_file}}`

0 commit comments

Comments
 (0)