1 @c Copyright (C) 2004 Free Software Foundation, Inc.
2 @c This is part of the GnuPG manual.
3 @c For copying conditions, see the file GnuPG.texi.
6 @c This is included by tools.texi.
9 @c Begin GnuPG 1.x specific stuff
16 @section Verify OpenPGP signatures
19 \- Verify OpenPGP signatures
29 @c End GnuPG 1.x specific stuff
31 @c Begin GnuPG 2 specific stuff
38 @section Verify OpenPGP signatures
41 \- Verify OpenPGP signatures
51 @c End GnuPG 2 specific stuff
56 @code{@gpgvname} is an OpenPGP signature verification tool.
58 This program is actually a stripped-down version of @code{gpg} which is
59 only able to check signatures. It is somewhat smaller than the fully-blown
60 @code{gpg} and uses a different (and simpler) way to check that
61 the public keys used to make the signature are valid. There are
62 no configuration files and only a few options are implemented.
64 @code{@gpgvname} assumes that all keys in the keyring are trustworthy.
65 By default it uses a keyring named @file{trustedkeys.gpg} which is
66 assumed to be in the home directory as defined by GnuPG or set by an
67 option or an environment variable. An option may be used to specify
68 another keyring or even multiple keyrings.
72 @code{@gpgvname} recognizes these options:
79 Gives more information during processing. If used
80 twice, the input data is listed in detail.
85 Try to be as quiet as possible.
87 @item --keyring @var{file}
89 Add @var{file} to the list of keyrings.
90 If @var{file} begins with a tilde and a slash, these
91 are replaced by the HOME directory. If the filename
92 does not contain a slash, it is assumed to be in the
93 home-directory ("~/.gnupg" if --homedir is not used).
95 @item --status-fd @var{n}
97 Write special status strings to the file descriptor @var{n}. See the
98 file DETAILS in the documentation for a listing of them.
100 @item --logger-fd @code{n}
102 Write log output to file descriptor @code{n} and not to stderr.
104 @item --ignore-time-conflict
105 @opindex ignore-time-conflict
106 GnuPG normally checks that the timestamps associated with keys and
107 signatures have plausible values. However, sometimes a signature seems to
108 be older than the key due to clock problems. This option turns these
109 checks into warnings.
111 @include opt-homedir.texi
115 @mansect return value
117 The program returns 0 if everything is fine, 1 if at least
118 one signature was bad, and other error codes for fatal errors.
125 @item @gpgvname @code{pgpfile}
126 @itemx @gpgvname @code{sigfile} [@code{datafile}]
127 Verify the signature of the file. The second form is used for detached
128 signatures, where @code{sigfile} is the detached signature (either
129 ASCII-armored or binary) and @code{datafile} contains the signed data;
130 if @code{datafile} is "-" the signed data is expected on
131 @code{stdin}; if @code{datafile} is not given the name of the file
132 holding the signed data is constructed by cutting off the extension
133 (".asc", ".sig" or ".sign") from @code{sigfile}.
138 @subsection Environment
143 Used to locate the default home directory.
146 If set directory used instead of "~/.gnupg".
155 @item ~/.gnupg/trustedkeys.gpg
156 The default keyring with the allowed keys.
162 @include see-also-note.texi