Blame doc/invoke-srptool.texi

Packit aea12f
@node srptool Invocation
Packit aea12f
@subsubsection Invoking srptool
Packit aea12f
@pindex srptool
Packit aea12f
@ignore
Packit aea12f
#  -*- buffer-read-only: t -*- vi: set ro:
Packit aea12f
#
Packit aea12f
# DO NOT EDIT THIS FILE   (invoke-srptool.texi)
Packit aea12f
#
Packit aea12f
# It has been AutoGen-ed
Packit aea12f
# From the definitions    ../src/srptool-args.def
Packit aea12f
# and the template file   agtexi-cmd.tpl
Packit aea12f
@end ignore
Packit aea12f
Packit aea12f
Packit aea12f
Simple program that emulates the programs in the Stanford SRP (Secure
Packit aea12f
Remote Password) libraries using GnuTLS.  It is intended for use in  places
Packit aea12f
where you don't expect SRP authentication to be the used for system users.
Packit aea12f
Packit aea12f
In  brief,  to use SRP you need to create two files. These are the password
Packit aea12f
file that holds the users and the verifiers associated with  them  and  the
Packit aea12f
configuration file to hold the group parameters (called tpasswd.conf).
Packit aea12f
Packit aea12f
This section was generated by @strong{AutoGen},
Packit aea12f
using the @code{agtexi-cmd} template and the option descriptions for the @code{srptool} program.
Packit aea12f
This software is released under the GNU General Public License, version 3 or later.
Packit aea12f
Packit aea12f
Packit aea12f
@anchor{srptool usage}
Packit aea12f
@subsubheading srptool help/usage (@option{--help})
Packit aea12f
@cindex srptool help
Packit aea12f
Packit aea12f
This is the automatically generated usage text for srptool.
Packit aea12f
Packit aea12f
The text printed is the same whether selected with the @code{help} option
Packit aea12f
(@option{--help}) or the @code{more-help} option (@option{--more-help}).  @code{more-help} will print
Packit aea12f
the usage text by passing it through a pager program.
Packit aea12f
@code{more-help} is disabled on platforms without a working
Packit aea12f
@code{fork(2)} function.  The @code{PAGER} environment variable is
Packit aea12f
used to select the program, defaulting to @file{more}.  Both will exit
Packit aea12f
with a status code of 0.
Packit aea12f
Packit aea12f
@exampleindent 0
Packit aea12f
@example
Packit aea12f
srptool - GnuTLS SRP tool
Packit aea12f
Usage:  srptool [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
Packit aea12f
Packit aea12f
   -d, --debug=num            Enable debugging
Packit aea12f
                                - it must be in the range:
Packit aea12f
                                  0 to 9999
Packit aea12f
   -i, --index=num            specify the index of the group parameters in tpasswd.conf to use
Packit aea12f
   -u, --username=str         specify a username
Packit aea12f
   -p, --passwd=str           specify a password file
Packit aea12f
   -s, --salt=num             specify salt size
Packit aea12f
       --verify               just verify the password.
Packit aea12f
   -v, --passwd-conf=str      specify a password conf file.
Packit aea12f
       --create-conf=str      Generate a password configuration file.
Packit aea12f
   -v, --version[=arg]        output version information and exit
Packit aea12f
   -h, --help                 display extended usage information and exit
Packit aea12f
   -!, --more-help            extended usage information passed thru pager
Packit aea12f
Packit aea12f
Options are specified by doubled hyphens and their name or by a single
Packit aea12f
hyphen and the flag character.
Packit aea12f
Packit aea12f
Simple program that emulates the programs in the Stanford SRP (Secure
Packit aea12f
Remote Password) libraries using GnuTLS.  It is intended for use in places
Packit aea12f
where you don't expect SRP authentication to be the used for system users.
Packit aea12f
Packit aea12f
In brief, to use SRP you need to create two files.  These are the password
Packit aea12f
file that holds the users and the verifiers associated with them and the
Packit aea12f
configuration file to hold the group parameters (called tpasswd.conf).
Packit aea12f
Packit aea12f
@end example
Packit aea12f
@exampleindent 4
Packit aea12f
Packit aea12f
@anchor{srptool debug}
Packit aea12f
@subsubheading debug option (-d)
Packit aea12f
Packit aea12f
This is the ``enable debugging'' option.
Packit aea12f
This option takes a number argument.
Packit aea12f
Specifies the debug level.
Packit aea12f
@anchor{srptool verify}
Packit aea12f
@subsubheading verify option
Packit aea12f
Packit aea12f
This is the ``just verify the password.'' option.
Packit aea12f
Verifies the password provided against the password file.
Packit aea12f
@anchor{srptool passwd-conf}
Packit aea12f
@subsubheading passwd-conf option (-v)
Packit aea12f
Packit aea12f
This is the ``specify a password conf file.'' option.
Packit aea12f
This option takes a string argument.
Packit aea12f
Specify a filename or a PKCS #11 URL to read the CAs from.
Packit aea12f
@anchor{srptool create-conf}
Packit aea12f
@subsubheading create-conf option
Packit aea12f
Packit aea12f
This is the ``generate a password configuration file.'' option.
Packit aea12f
This option takes a string argument.
Packit aea12f
This generates a password configuration file (tpasswd.conf)
Packit aea12f
containing the required for TLS parameters.
Packit aea12f
@anchor{srptool exit status}
Packit aea12f
@subsubheading srptool exit status
Packit aea12f
Packit aea12f
One of the following exit values will be returned:
Packit aea12f
@table @samp
Packit aea12f
@item 0 (EXIT_SUCCESS)
Packit aea12f
Successful program execution.
Packit aea12f
@item 1 (EXIT_FAILURE)
Packit aea12f
The operation failed or the command syntax was not valid.
Packit aea12f
@end table
Packit aea12f
@anchor{srptool See Also}
Packit aea12f
@subsubheading srptool See Also
Packit aea12f
    gnutls-cli-debug (1), gnutls-serv (1), srptool (1), psktool (1), certtool (1)
Packit aea12f
@anchor{srptool Examples}
Packit aea12f
@subsubheading srptool Examples
Packit aea12f
To create @file{tpasswd.conf} which holds the g and n values for SRP protocol
Packit aea12f
(generator and a large prime), run:
Packit aea12f
@example
Packit aea12f
$ srptool --create-conf /etc/tpasswd.conf
Packit aea12f
@end example
Packit aea12f
Packit aea12f
This command will create @file{/etc/tpasswd} and will add user 'test' (you
Packit aea12f
will also be prompted for a password). Verifiers are stored by default
Packit aea12f
in the way libsrp expects.
Packit aea12f
@example
Packit aea12f
$ srptool --passwd /etc/tpasswd --passwd-conf /etc/tpasswd.conf -u test
Packit aea12f
@end example
Packit aea12f
Packit aea12f
Packit aea12f
This command will check against a password. If the password matches
Packit aea12f
the one in @file{/etc/tpasswd} you will get an ok.
Packit aea12f
@example
Packit aea12f
$ srptool --passwd /etc/tpasswd --passwd\-conf /etc/tpasswd.conf --verify -u test
Packit aea12f
@end example