Blame doc/invoke-srptool.texi

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