1GPGV2(1) GNU Privacy Guard GPGV2(1)
2
3
4
6 gpgv2 - Verify OpenPGP signatures
7
9 gpgv2 [options] signed_files
10
11
12
13
15 gpgv2 is an OpenPGP signature verification tool.
16
17 This program is actually a stripped-down version of gpg which is only
18 able to check signatures. It is somewhat smaller than the fully-blown
19 gpg and uses a different (and simpler) way to check that the public
20 keys used to make the signature are valid. There are no configuration
21 files and only a few options are implemented.
22
23 gpgv2 assumes that all keys in the keyring are trustworthy. By default
24 it uses a keyring named ‘trustedkeys.gpg’ which is assumed to be in the
25 home directory as defined by GnuPG or set by an option or an environ‐
26 ment variable. An option may be used to specify another keyring or even
27 multiple keyrings.
28
29
30
32 The program returns 0 if everything is fine, 1 if at least one signa‐
33 ture was bad, and other error codes for fatal errors.
34
35
37 gpgv2 recognizes these options:
38
39
40
41 --verbose
42
43 -v Gives more information during processing. If used twice, the
44 input data is listed in detail.
45
46
47 --quiet
48
49 -q Try to be as quiet as possible.
50
51
52 --keyring file
53 Add file to the list of keyrings. If file begins with a tilde
54 and a slash, these are replaced by the HOME directory. If the
55 filename does not contain a slash, it is assumed to be in the
56 home-directory ("~/.gnupg" if --homedir is not used).
57
58
59 --status-fd n
60 Write special status strings to the file descriptor n. See the
61 file DETAILS in the documentation for a listing of them.
62
63
64 --logger-fd n
65 Write log output to file descriptor n and not to stderr.
66
67
68 --ignore-time-conflict
69 GnuPG normally checks that the timestamps associated with keys
70 and signatures have plausible values. However, sometimes a sig‐
71 nature seems to be older than the key due to clock problems.
72 This option turns these checks into warnings.
73
74
75 --homedir dir
76 Set the name of the home directory to dir. If this option is not
77 used, the home directory defaults to ‘~/.gnupg’. It is only
78 recognized when given on the command line. It also overrides
79 any home directory stated through the environment variable
80 ‘GNUPGHOME’ or (on W32 systems) by means of the Registry entry
81 HKCU\Software\GNU\GnuPG:HomeDir.
82
83
84
85
87 gpgv2 pgpfile
88
89 gpgv2 sigfile [datafile]
90 Verify the signature of the file. The second form is used for
91 detached signatures, where sigfile is the detached signature
92 (either ASCII-armored or binary) and datafile contains the
93 signed data; if datafile is "-" the signed data is expected on
94 stdin; if datafile is not given the name of the file holding the
95 signed data is constructed by cutting off the extension (".asc",
96 ".sig" or ".sign") from sigfile.
97
98
99
101 ~/.gnupg/trustedkeys.gpg
102 The default keyring with the allowed keys.
103
104
105
107 HOME Used to locate the default home directory.
108
109
110 GNUPGHOME
111 If set directory used instead of "~/.gnupg".
112
113
114
116 gpg2(1)
117
118 The full documentation for this tool is maintained as a Texinfo manual.
119 If GnuPG and the info program are properly installed at your site, the
120 command
121
122 info gnupg
123
124 should give you access to the complete manual including a menu struc‐
125 ture and an index.
126
127
128
129
130
131
132
133GnuPG 2.0.14 2018-07-13 GPGV2(1)