Blame doc/invoke-psktool.texi

Packit Service 4684c1
@node psktool Invocation
Packit Service 4684c1
@subsubsection Invoking psktool
Packit Service 4684c1
@pindex psktool
Packit Service 4684c1
@ignore
Packit Service 4684c1
#  -*- buffer-read-only: t -*- vi: set ro:
Packit Service 4684c1
#
Packit Service 4684c1
# DO NOT EDIT THIS FILE   (invoke-psktool.texi)
Packit Service 4684c1
#
Packit Service 4684c1
# It has been AutoGen-ed
Packit Service 4684c1
# From the definitions    ../src/psktool-args.def
Packit Service 4684c1
# and the template file   agtexi-cmd.tpl
Packit Service 4684c1
@end ignore
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Program  that generates random keys for use with TLS-PSK. The
Packit Service 4684c1
keys are stored in hexadecimal format in a key file.
Packit Service 4684c1
Packit Service 4684c1
This section was generated by @strong{AutoGen},
Packit Service 4684c1
using the @code{agtexi-cmd} template and the option descriptions for the @code{psktool} program.
Packit Service 4684c1
This software is released under the GNU General Public License, version 3 or later.
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@anchor{psktool usage}
Packit Service 4684c1
@subsubheading psktool help/usage (@option{--help})
Packit Service 4684c1
@cindex psktool help
Packit Service 4684c1
Packit Service 4684c1
This is the automatically generated usage text for psktool.
Packit Service 4684c1
Packit Service 4684c1
The text printed is the same whether selected with the @code{help} option
Packit Service 4684c1
(@option{--help}) or the @code{more-help} option (@option{--more-help}).  @code{more-help} will print
Packit Service 4684c1
the usage text by passing it through a pager program.
Packit Service 4684c1
@code{more-help} is disabled on platforms without a working
Packit Service 4684c1
@code{fork(2)} function.  The @code{PAGER} environment variable is
Packit Service 4684c1
used to select the program, defaulting to @file{more}.  Both will exit
Packit Service 4684c1
with a status code of 0.
Packit Service 4684c1
Packit Service 4684c1
@exampleindent 0
Packit Service 4684c1
@example
Packit Service 4684c1
psktool - GnuTLS PSK tool
Packit Service 4684c1
Usage:  psktool [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
Packit Service 4684c1
Packit Service 4684c1
   -d, --debug=num            Enable debugging
Packit Service 4684c1
                                - it must be in the range:
Packit Service 4684c1
                                  0 to 9999
Packit Service 4684c1
   -s, --keysize=num          Specify the key size in bytes (default is 32-bytes or 256-bits)
Packit Service 4684c1
                                - it must be in the range:
Packit Service 4684c1
                                  0 to 512
Packit Service 4684c1
   -u, --username=str         Specify the username to use
Packit Service 4684c1
   -p, --pskfile=str          Specify a pre-shared key file
Packit Service 4684c1
   -v, --version[=arg]        output version information and exit
Packit Service 4684c1
   -h, --help                 display extended usage information and exit
Packit Service 4684c1
   -!, --more-help            extended usage information passed thru pager
Packit Service 4684c1
Packit Service 4684c1
Options are specified by doubled hyphens and their name or by a single
Packit Service 4684c1
hyphen and the flag character.
Packit Service 4684c1
Packit Service 4684c1
Program that generates random keys for use with TLS-PSK.  The keys are
Packit Service 4684c1
stored in hexadecimal format in a key file.
Packit Service 4684c1
Packit Service 4684c1
@end example
Packit Service 4684c1
@exampleindent 4
Packit Service 4684c1
Packit Service 4684c1
@anchor{psktool debug}
Packit Service 4684c1
@subsubheading debug option (-d)
Packit Service 4684c1
Packit Service 4684c1
This is the ``enable debugging'' option.
Packit Service 4684c1
This option takes a number argument.
Packit Service 4684c1
Specifies the debug level.
Packit Service 4684c1
@anchor{psktool pskfile}
Packit Service 4684c1
@subsubheading pskfile option (-p)
Packit Service 4684c1
Packit Service 4684c1
This is the ``specify a pre-shared key file'' option.
Packit Service 4684c1
This option takes a string argument.
Packit Service 4684c1
This option will specify the pre-shared key file to store the generated keys.
Packit Service 4684c1
@anchor{psktool passwd}
Packit Service 4684c1
@subsubheading passwd option
Packit Service 4684c1
Packit Service 4684c1
This is an alias for the @code{pskfile} option,
Packit Service 4684c1
@pxref{psktool pskfile, the pskfile option documentation}.
Packit Service 4684c1
Packit Service 4684c1
@anchor{psktool exit status}
Packit Service 4684c1
@subsubheading psktool exit status
Packit Service 4684c1
Packit Service 4684c1
One of the following exit values will be returned:
Packit Service 4684c1
@table @samp
Packit Service 4684c1
@item 0 (EXIT_SUCCESS)
Packit Service 4684c1
Successful program execution.
Packit Service 4684c1
@item 1 (EXIT_FAILURE)
Packit Service 4684c1
The operation failed or the command syntax was not valid.
Packit Service 4684c1
@end table
Packit Service 4684c1
@anchor{psktool See Also}
Packit Service 4684c1
@subsubheading psktool See Also
Packit Service 4684c1
    gnutls-cli-debug (1), gnutls-serv (1), srptool (1), certtool (1)
Packit Service 4684c1
@anchor{psktool Examples}
Packit Service 4684c1
@subsubheading psktool Examples
Packit Service 4684c1
To add a user 'psk_identity' in @file{keys.psk} for use with GnuTLS run:
Packit Service 4684c1
@example
Packit Service 4684c1
$ ./psktool -u psk_identity -p keys.psk
Packit Service 4684c1
Generating a random key for user 'psk_identity'
Packit Service 4684c1
Key stored to keys.psk
Packit Service 4684c1
$ cat keys.psk
Packit Service 4684c1
psk_identity:88f3824b3e5659f52d00e959bacab954b6540344
Packit Service 4684c1
$
Packit Service 4684c1
@end example
Packit Service 4684c1
Packit Service 4684c1
This command will create @file{keys.psk} if it does not exist
Packit Service 4684c1
and will add user 'psk_identity'.