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.
8 GnuPG comes with a couple of smaller tools:
11 * watchgnupg:: Read logs from a socket.
12 * gpgv:: Verify OpenPGP signatures.
13 * addgnupghome:: Create .gnupg home directories.
14 * gpgconf:: Modify .gnupg home directories.
15 * gpgsm-gencert.sh:: Generate an X.509 certificate request.
16 * gpg-preset-passphrase:: Put a passphrase into the cache.
17 * gpg-connect-agent:: Communicate with a running agent.
18 * gpgparsemail:: Parse a mail message into an annotated format
19 * symcryptrun:: Call a simple symmetric encryption tool.
27 @section Read logs from a socket
30 \- Read and print logs from a socket
42 Most of the main utilities are able to write there log files to a
43 Unix Domain socket if configured that way. @command{watchgnupg} is a simple
44 listener for such a socket. It ameliorates the output with a time
45 stamp and makes sure that long lines are not interspersed with log
46 output from other utilities.
49 @command{watchgnupg} is commonly invoked as
52 watchgnupg --force ~/.gnupg/S.log
57 This starts it on the current terminal for listening on the socket
58 @file{~/.gnupg/S.log}.
62 @command{watchgnupg} understands these options:
68 Delete an already existing socket file.
72 Enable extra informational output.
76 print version of the program and exit
80 Display a brief help page and exit
87 @command{gpg-agent}(1),
89 @include see-also-note.texi
97 @section Verify OpenPGP signatures
100 \- Verify OpenPGP signatures
111 @code{gpgv2} is an OpenPGP signature verification tool.
113 This program is actually a stripped down version of @code{gpg} which is
114 only able to check signatures. It is somewhat smaller than the fully blown
115 @code{gpg} and uses a different (and simpler) way to check that
116 the public keys used to make the signature are valid. There are
117 no configuration files and only a few options are implemented.
119 @code{gpgv2} assumes that all keys in the keyring are trustworthy.
120 By default it uses a keyring named @file{trustedkeys.gpg} which is
121 assumed to be in the home directory as defined by GnuPG or set by an
122 option or an environment variable. An option may be used to specify
123 another keyring or even multiple keyrings.
127 @code{gpgv2} recognizes these options:
134 Gives more information during processing. If used
135 twice, the input data is listed in detail.
140 Try to be as quiet as possible.
142 @item --keyring @var{file}
144 Add @var{file} to the list of keyrings.
145 If @var{file} begins with a tilde and a slash, these
146 are replaced by the HOME directory. If the filename
147 does not contain a slash, it is assumed to be in the
148 home-directory ("~/.gnupg" if --homedir is not used).
150 @item --status-fd @var{n}
152 Write special status strings to the file descriptor @var{n}. See the
153 file DETAILS in the documentation for a listing of them.
155 @item --logger-fd @code{n}
157 Write log output to file descriptor @code{n} and not to stderr.
159 @item --ignore-time-conflict
160 @opindex ignore-time-conflict
161 GnuPG normally checks that the timestamps associated with keys and
162 signatures have plausible values. However, sometimes a signature seems to
163 be older than the key due to clock problems. This option turns these
164 checks into warnings.
166 @include opt-homedir.texi
170 @mansect return value
172 The program returns 0 if everything was fine, 1 if at least
173 one signature was bad, and other error codes for fatal errors.
180 @item gpgv2 @code{pgpfile}
181 @itemx gpgv2 @code{sigfile}
182 Verify the signature of the file. The second form
183 is used for detached signatures, where @code{sigfile} is the detached
184 signature (either ASCII armored or binary) and are the signed
185 data; if this is not given the name of the file holding the signed data is
186 constructed by cutting off the extension (".asc", ".sig" or ".sign") from
192 @subsection Environment
197 Used to locate the default home directory.
200 If set directory used instead of "~/.gnupg".
209 @item ~/.gnupg/trustedkeys.gpg
210 The default keyring with the allowed keys
216 @include see-also-note.texi
224 @manpage addgnupghome.8
226 @section Create .gnupg home directories.
229 \- Create .gnupg home directories
236 .IR account_2 ... account_n
240 If GnuPG is installed on a system with existing user accounts, it is
241 sometimes required to populate the GnuPG home directory with existing
242 files. Especially a @file{trustlist.txt} and a keybox with some
243 initial certificates are often desired. This scripts help to do this
244 by copying all files from @file{/etc/skel/.gnupg} to the home
245 directories of the accounts given on the command line. It takes care
246 not to overwrite existing GnuPG home directories.
249 @command{addgnupghome} is invoked by root as:
252 addgnupghome account1 account2 ... accountn
261 @section Modify .gnupg home directories.
264 \- Modify .gnupg home directories
271 .B \-\-list-components
280 .B \-\-change-options
286 The @command{gpgconf} is a utility to automatically and reasonable
287 safely query and modify configuration files in the @file{.gnupg} home
288 directory. It is designed not to be invoked manually by the user, but
289 automatically by graphical user interfaces (GUI).@footnote{Please note
290 that currently no locking is done, so concurrent access should be
291 avoided. There are some precautions to avoid corruption with
292 concurrent usage, but results may be inconsistent and some changes may
293 get lost. The stateless design makes it difficult to provide more
296 @command{gpgconf} provides access to the configuration of one or more
297 components of the GnuPG system. These components correspond more or
298 less to the programs that exist in the GnuPG framework, like GnuPG,
299 GPGSM, DirMngr, etc. But this is not a strict one-to-one
300 relationship. Not all configuration options are available through
301 @command{gpgconf}. @command{gpgconf} provides a generic and abstract
302 method to access the most important configuration options that can
303 feasibly be controlled via such a mechanism.
305 @command{gpgconf} can be used to gather and change the options
306 available in each component, and can also provide their default
307 values. @command{gpgconf} will give detailed type information that
308 can be used to restrict the user's input without making an attempt to
311 @command{gpgconf} provides the backend of a configuration editor. The
312 configuration editor would usually be a graphical user interface
313 program, that allows to display the current options, their default
314 values, and allows the user to make changes to the options. These
315 changes can then be made active with @command{gpgconf} again. Such a
316 program that uses @command{gpgconf} in this way will be called GUI
317 throughout this section.
320 * Invoking gpgconf:: List of all commands and options.
321 * Format conventions:: Formatting conventions relevant for all commands.
322 * Listing components:: List all gpgconf components.
323 * Listing options:: List all options of a component.
324 * Changing options:: Changing options of a component.
328 @node Invoking gpgconf
329 @subsection Invoking gpgconf
332 One of the following commands must be given:
336 @item --list-components
337 List all components. This is the default command used if none is
340 @item --list-options @var{component}
341 List all options of the component @var{component}.
343 @item --change-options @var{component}
344 Change the options of the component @var{component}.
349 The following options may be used:
352 @c FIXME: Not yet supported.
353 @c @item -o @var{file}
354 @c @itemx --output @var{file}
355 @c Use @var{file} as output file.
359 Outputs additional information while running. Specifically, this
360 extends numerical field values by human-readable descriptions.
362 @c FIXME: Not yet supported.
365 @c Do not actually change anything. Useful together with
366 @c @code{--change-options} for testing purposes.
370 Only used together with @code{--change-options}. If one of the
371 modified options can be changed in a running daemon process, signal
372 the running daemon to ask it to reparse its configuration file after
375 This means that the changes will take effect at run-time, as far as
376 this is possible. Otherwise, they will take effect at the next start
377 of the respective backend programs.
382 @node Format conventions
383 @subsection Format conventions
385 Some lines in the output of @command{gpgconf} contain a list of
386 colon-separated fields. The following conventions apply:
390 The GUI program is required to strip off trailing newline and/or
391 carriage return characters from the output.
394 @command{gpgconf} will never leave out fields. If a certain version
395 provides a certain field, this field will always be present in all
396 @command{gpgconf} versions from that time on.
399 Future versions of @command{gpgconf} might append fields to the list.
400 New fields will always be separated from the previously last field by
401 a colon separator. The GUI should be prepared to parse the last field
402 it knows about up until a colon or end of line.
405 Not all fields are defined under all conditions. You are required to
406 ignore the content of undefined fields.
409 There are several standard types for the content of a field:
413 Some fields contain strings that are not escaped in any way. Such
414 fields are described to be used @emph{verbatim}. These fields will
415 never contain a colon character (for obvious reasons). No de-escaping
416 or other formatting is required to use the field content. This is for
417 easy parsing of the output, when it is known that the content can
418 never contain any special characters.
420 @item percent-escaped
421 Some fields contain strings that are described to be
422 @emph{percent-escaped}. Such strings need to be de-escaped before
423 their content can be presented to the user. A percent-escaped string
424 is de-escaped by replacing all occurences of @code{%XY} by the byte
425 that has the hexadecimal value @code{XY}. @code{X} and @code{Y} are
426 from the set @code{0-9a-f}.
429 Some fields contain strings that are described to be @emph{localised}.
430 Such strings are translated to the active language and formatted in
431 the active character set.
433 @item @w{unsigned number}
434 Some fields contain an @emph{unsigned number}. This number will
435 always fit into a 32-bit unsigned integer variable. The number may be
436 followed by a space, followed by a human readable description of that
437 value (if the verbose option is used). You should ignore everything
438 in the field that follows the number.
440 @item @w{signed number}
441 Some fields contain a @emph{signed number}. This number will always
442 fit into a 32-bit signed integer variable. The number may be followed
443 by a space, followed by a human readable description of that value (if
444 the verbose option is used). You should ignore everything in the
445 field that follows the number.
448 Some fields contain an @emph{option} argument. The format of an
449 option argument depends on the type of the option and on some flags:
453 The simplest case is that the option does not take an argument at all
454 (@var{type} @code{0}). Then the option argument is an unsigned number
455 that specifies how often the option occurs. If the @code{list} flag
456 is not set, then the only valid number is @code{1}. Options that do
457 not take an argument never have the @code{default} or @code{optional
461 If the option takes a number argument (@var{alt-type} is @code{2} or
462 @code{3}), and it can only occur once (@code{list} flag is not set),
463 then the option argument is either empty (only allowed if the argument
464 is optional), or it is a number. A number is a string that begins
465 with an optional minus character, followed by one or more digits. The
466 number must fit into an integer variable (unsigned or signed,
467 depending on @var{alt-type}).
470 If the option takes a number argument and it can occur more than once,
471 then the option argument is either empty, or it is a comma-separated
472 list of numbers as described above.
475 If the option takes a string argument (@var{alt-type} is 1), and it
476 can only occur once (@code{list} flag is not set) then the option
477 argument is either empty (only allowed if the argument is optional),
478 or it starts with a double quote character (@code{"}) followed by a
479 percent-escaped string that is the argument value. Note that there is
480 only a leading double quote character, no trailing one. The double
481 quote character is only needed to be able to differentiate between no
482 value and the empty string as value.
485 If the option takes a number argument and it can occur more than once,
486 then the option argument is either empty, or it is a comma-separated
487 list of string arguments as described above.
491 The active language and character set are currently determined from
492 the locale environment of the @command{gpgconf} program.
494 @c FIXME: Document the active language and active character set. Allow
495 @c to change it via the command line?
499 @node Listing components
500 @subsection Listing components
502 The command @code{--list-components} will list all components that can
503 be configured with @command{gpgconf}. Usually, one component will
504 correspond to one GnuPG-related program and contain the options of
505 that programs configuration file that can be modified using
506 @command{gpgconf}. However, this is not necessarily the case. A
507 component might also be a group of selected options from several
508 programs, or contain entirely virtual options that have a special
509 effect rather than changing exactly one option in one configuration
512 A component is a set of configuration options that semantically belong
513 together. Furthermore, several changes to a component can be made in
514 an atomic way with a single operation. The GUI could for example
515 provide a menu with one entry for each component, or a window with one
516 tabulator sheet per component.
518 The command argument @code{--list-components} lists all available
519 components, one per line. The format of each line is:
521 @code{@var{name}:@var{description}}
525 This field contains a name tag of the component. The name tag is used
526 to specify the component in all communication with @command{gpgconf}.
527 The name tag is to be used @emph{verbatim}. It is thus not in any
531 The @emph{string} in this field contains a human-readable description
532 of the component. It can be displayed to the user of the GUI for
533 informational purposes. It is @emph{percent-escaped} and
539 $ gpgconf --list-components
542 scdaemon:Smartcard Daemon
544 dirmngr:Directory Manager
548 @node Listing options
549 @subsection Listing options
551 Every component contains one or more options. Options may be gathered
552 into option groups to allow the GUI to give visual hints to the user
553 about which options are related.
555 The command argument @code{@w{--list-options @var{component}}} lists
556 all options (and the groups they belong to) in the component
557 @var{component}, one per line. @var{component} must be the string in
558 the field @var{name} in the output of the @code{--list-components}
561 There is one line for each option and each group. First come all
562 options that are not in any group. Then comes a line describing a
563 group. Then come all options that belong into each group. Then comes
564 the next group and so on. There does not need to be any group (and in
565 this case the output will stop after the last non-grouped option).
567 The format of each line is:
569 @code{@var{name}:@var{flags}:@var{level}:@var{description}:@var{type}:@var{alt-type}:@var{argname}:@var{default}:@var{argdef}:@var{value}}
573 This field contains a name tag for the group or option. The name tag
574 is used to specify the group or option in all communication with
575 @command{gpgconf}. The name tag is to be used @emph{verbatim}. It is
576 thus not in any escaped format.
579 The flags field contains an @emph{unsigned number}. Its value is the
580 OR-wise combination of the following flag values:
584 If this flag is set, this is a line describing a group and not an
588 The following flag values are only defined for options (that is, if
589 the @code{group} flag is not used).
592 @item optional arg (2)
593 If this flag is set, the argument is optional. This is never set for
594 @var{type} @code{0} (none) options.
597 If this flag is set, the option can be given multiple times.
600 If this flag is set, the option can be changed at runtime.
603 If this flag is set, a default value is available.
605 @item default desc (32)
606 If this flag is set, a (runtime) default is available. This and the
607 @code{default} flag are mutually exclusive.
609 @item no arg desc (64)
610 If this flag is set, and the @code{optional arg} flag is set, then the
611 option has a special meaning if no argument is given.
615 This field is defined for options and for groups. It contains an
616 @emph{unsigned number} that specifies the expert level under which
617 this group or option should be displayed. The following expert levels
618 are defined for options (they have analogous meaning for groups):
622 This option should always be offered to the user.
625 This option may be offered to advanced users.
628 This option should only be offered to expert users.
631 This option should normally never be displayed, not even to expert
635 This option is for internal use only. Ignore it.
638 The level of a group will always be the lowest level of all options it
642 This field is defined for options and groups. The @emph{string} in
643 this field contains a human-readable description of the option or
644 group. It can be displayed to the user of the GUI for informational
645 purposes. It is @emph{percent-escaped} and @emph{localized}.
648 This field is only defined for options. It contains an @emph{unsigned
649 number} that specifies the type of the option's argument, if any. The
650 following types are defined:
659 An @emph{unformatted string}.
662 A @emph{signed number}.
665 An @emph{unsigned number}.
672 A @emph{string} that describes the pathname of a file. The file does
673 not necessarily need to exist.
675 @item ldap server (33)
676 A @emph{string} that describes an LDAP server in the format:
678 @code{@var{hostname}:@var{port}:@var{username}:@var{password}:@var{base_dn}}
681 More types will be added in the future. Please see the @var{alt-type}
682 field for information on how to cope with unknown types.
685 This field is identical to @var{type}, except that only the types
686 @code{0} to @code{31} are allowed. The GUI is expected to present the
687 user the option in the format specified by @var{type}. But if the
688 argument type @var{type} is not supported by the GUI, it can still
689 display the option in the more generic basic type @var{alt-type}. The
690 GUI must support all the defined basic types to be able to display all
691 options. More basic types may be added in future versions. If the
692 GUI encounters a basic type it doesn't support, it should report an
693 error and abort the operation.
696 This field is only defined for options with an argument type
697 @var{type} that is not @code{0}. In this case it may contain a
698 @emph{percent-escaped} and @emph{localised string} that gives a short
699 name for the argument. The field may also be empty, though, in which
700 case a short name is not known.
703 This field is defined only for options. Its format is that of an
704 @emph{option argument} (@xref{Format conventions}, for details). If
705 the default value is empty, then no default is known. Otherwise, the
706 value specifies the default value for this option. Note that this
707 field is also meaningful if the option itself does not take a real
711 This field is defined only for options for which the @code{optional
712 arg} flag is set. If the @code{no arg desc} flag is not set, its
713 format is that of an @emph{option argument} (@xref{Format
714 conventions}, for details). If the default value is empty, then no
715 default is known. Otherwise, the value specifies the default value
716 for this option. If the @code{no arg desc} flag is set, the field is
717 either empty or contains a description of the effect of this option if
718 no argument is given. Note that this field is also meaningful if the
719 option itself does not take a real argument.
722 This field is defined only for options. Its format is that of an
723 @emph{option argument}. If it is empty, then the option is not
724 explicitely set in the current configuration, and the default applies
725 (if any). Otherwise, it contains the current value of the option.
726 Note that this field is also meaningful if the option itself does not
727 take a real argument.
731 @node Changing options
732 @subsection Changing options
734 The command @w{@code{--change-options @var{component}}} will attempt
735 to change the options of the component @var{component} to the
736 specified values. @var{component} must be the string in the field
737 @var{name} in the output of the @code{--list-components} command. You
738 have to provide the options that shall be changed in the following
739 format on standard input:
741 @code{@var{name}:@var{flags}:@var{new-value}}
745 This is the name of the option to change. @var{name} must be the
746 string in the field @var{name} in the output of the
747 @code{--list-options} command.
750 The flags field contains an @emph{unsigned number}. Its value is the
751 OR-wise combination of the following flag values:
755 If this flag is set, the option is deleted and the default value is
756 used instead (if applicable).
760 The new value for the option. This field is only defined if the
761 @code{default} flag is not set. The format is that of an @emph{option
762 argument}. If it is empty (or the field is omitted), the default
763 argument is used (only allowed if the argument is optional for this
764 option). Otherwise, the option will be set to the specified value.
769 To set the force option, which is of basic type @code{none (0)}:
772 $ echo 'force:0:1' | gpgconf --change-options dirmngr
775 To delete the force option:
778 $ echo 'force:16:' | gpgconf --change-options dirmngr
781 The @code{--runtime} option can influence when the changes take
787 @command{gpg-agent}(1),
788 @command{scdaemon}(1),
790 @include see-also-note.texi
797 @node gpgsm-gencert.sh
798 @section Generate an X.509 certificate request
799 @manpage gpgsm-gencert.sh.1
802 \- Generate an X.509 certificate request
811 This is a simple tool to interactivly generate a certificate request
812 which will be printed to stdout.
816 @command{gpgsm-gencert.sh} is invoked as:
818 @samp{gpgsm-cencert.sh}
822 @command{gpg-agent}(1),
823 @command{scdaemon}(1)
824 @include see-also-note.texi
829 @c GPG-PRESET-PASSPHRASE
831 @node gpg-preset-passphrase
832 @section Put a passphrase into the cache.
833 @manpage gpg-preset-passphrase.1
835 .B gpg-preset-passphrase
836 \- Put a passphrase into gpg-agent's cache
841 .B gpg-preset-passphrase
848 The @command{gpg-preset-passphrase} is a utility to seed the internal
849 cache of a running @command{gpg-agent} with passphrases. It is mainly
850 useful for unattended machines, where the usual @command{pinentry} tool
851 may not be used and the passphrases for the to be used keys are given at
854 Passphrases set with this utility don't expire unless the
855 @option{--forget} option is used to explicitly clear them from the cache
856 --- or @command{gpg-agent} is either restarted or reloaded (by sending a
857 SIGHUP to it). It is necessary to allow this passphrase presetting by
858 starting @command{gpg-agent} with the
859 @option{--allow-preset-passphrase}.
862 * Invoking gpg-preset-passphrase:: List of all commands and options.
866 @node Invoking gpg-preset-passphrase
867 @subsection List of all commands and options.
871 @command{gpg-preset-passphrase} is invoked this way:
874 gpg-preset-passphrase [options] [command] @var{keygrip}
877 @var{keygrip} is a 40 character string of hexadecimal characters
878 identifying the key for which the passphrase should be set or cleared.
879 This keygrip is listed along with the key when running the command:
880 @code{gpgsm --dump-secret-keys}. One of the following command options
886 Preset a passphrase. This is what you usually will
887 use. @command{gpg-preset-passphrase} will then read the passphrase from
892 Flush the passphrase for the given keygrip from the cache.
897 The following additional options may be used:
903 Output additional information while running.
905 @item -P @var{string}
906 @itemx --passphrase @var{string}
908 Instead of reading the passphrase from @code{stdin}, use the supplied
909 @var{string} as passphrase. Note that this makes the passphrase visible
916 @command{gpg-agent}(1),
917 @command{scdaemon}(1)
918 @include see-also-note.texi
926 @node gpg-connect-agent
927 @section Communicate with a running agent.
928 @manpage gpg-connect-agent.1
931 \- Communicate with a running agent
941 The @command{gpg-connect-agent} is a utility to communicate with a
942 running @command{gpg-agent}. It is useful to check out the commands
943 gpg-agent provides using the Assuan interface. It might also be useful
944 for scripting simple applications. Inputis expected at stdin and out
945 put gets printed to stdout.
947 It is very similar to running @command{gpg-agent} in server mode; but
948 here we connect to a running instance.
951 * Invoking gpg-connect-agent:: List of all options.
952 * Controlling gpg-connect-agent:: Control commands.
956 @node Invoking gpg-connect-agent
957 @subsection List of all options.
960 @command{gpg-connect-agent} is invoked this way:
963 gpg-connect-agent [options]
968 The following options may be used:
974 Output additional information while running.
980 Try to be as quiet as possible.
982 @include opt-homedir.texi
985 @itemx --raw-socket @var{name}
988 Connect to socket @var{name} assuming this is an Assuan style server.
989 Do not run any special initializations or environment checks. This may
990 be used to directly connect to any Assuan style socket server.
995 Take the rest of the command line as a program and it's arguments and
996 execute it as an assuan server. Here is how you would run @command{gpgsm}:
998 gpg-connect-agent --exec gpgsm --server
1002 @item --no-ext-connect
1003 @opindex no-ext-connect
1004 When using @option{-S} or @option{--exec}, @command{gpg-connect-agent}
1005 connects to the assuan server in extended mode to allow descriptor
1006 passing. This option makes it use the old mode.
1010 @mansect control commands
1011 @node Controlling gpg-connect-agent
1012 @subsection Control commands.
1014 While reading Assuan commands, gpg-agent also allows a few special
1015 commands to control its operation. These control commands all start
1016 with a slash (@code{/}).
1021 @item /echo @var{args}
1022 Just print @var{args}.
1024 @item /definqfile @var{name} @var{file}
1026 Use content of @var{file} for inquiries with @var{name}.
1027 @var{name} may be an asterisk (@code{*} to match any inquiry.
1029 @item /definqprog @var{name} @var{prog}
1030 Run @var{prog} for inquiries matching @var{name} and pass the
1031 entire line to it as command line arguments
1034 Print all definitions
1037 Delete all definitions
1039 @item /sendfd @var{file} @var{mode}
1040 Open @var{file} in @var{mode} (which needs to be a valid @code{fopen}
1041 mode string) and send the file descriptor to the server. This is
1042 usually followed by a command like @code{INPUT FD} to set the
1043 input source for other commands.
1046 Not yet implemented.
1049 Print a list of available control commands.
1056 @command{gpg-agent}(1),
1057 @command{scdaemon}(1)
1058 @include see-also-note.texi
1066 @section Parse a mail message into an annotated format
1068 @manpage gpgparsemail.1
1071 \- Parse a mail message into an annotated format
1081 @mansect description
1082 The @command{gpgparsemail} is a utility currently only useful for
1083 debugging. Run it with @code{--help} for usage information.
1091 @section Call a simple symmetric encryption tool.
1092 @manpage symcryptrun.1
1095 \- Call a simple symmetric encryption tool
1107 .RB [ --decrypt | --encrypt ]
1111 @mansect description
1112 Sometimes simple encryption tools are already in use for a long time and
1113 there might be a desire to integrate them into the GnuPG framework. The
1114 protocols and encryption methods might be non-standard or not even
1115 properly documented, so that a full-fledged encryption tool with an
1116 interface like gpg is not doable. @command{symcryptrun} provides a
1117 solution: It operates by calling the external encryption/decryption
1118 module and provides a passphrase for a key using the standard
1119 @command{pinentry} based mechanism through @command{gpg-agent}.
1121 Note, that @command{symcryptrun} is only available if GnuPG has been
1122 configured with @samp{--enable-symcryptrun} at build time.
1125 * Invoking symcryptrun:: List of all commands and options.
1129 @node Invoking symcryptrun
1130 @subsection List of all commands and options.
1133 @command{symcryptrun} is invoked this way:
1136 symcryptrun --class CLASS --program PROGRAM --keyfile KEYFILE
1137 [--decrypt | --encrypt] [inputfile]
1141 For encryption, the plain text must be provided on STDIN or as the
1142 argument @var{inputfile}, and the ciphertext will be output to STDOUT.
1143 For decryption vice versa.
1145 @var{CLASS} describes the calling conventions of the external tool.
1146 Currently it must be given as @samp{confucius}. @var{PROGRAM} is the
1147 the full filename of that external tool.
1149 For the class @samp{confucius} the option @option{--keyfile} is
1150 required; @var{keyfile} is the name of a file containing the secret key,
1151 which may be protected by a passphrase. For detailed calling
1152 conventions, see the source code.
1155 Note, that @command{gpg-agent} must be running before starting
1156 @command{symcryptrun}.
1159 The following additional options may be used:
1165 Output additional information while running.
1171 Try to be as quiet as possible.
1173 @include opt-homedir.texi
1176 @item --log-file @var{file}
1178 Append all logging output to @var{file}. Default is to write logging
1179 informaton to STDERR.
1184 The possible exit status codes of @command{symcryptrun} are:
1192 No valid passphrase was provided.
1194 The operation was canceled by the user.
1201 @command{gpg-agent}(1),
1202 @include see-also-note.texi