Imported Upstream version 3.0.30
[platform/upstream/gnutls.git] / doc / invoke-srptool.texi
1 @node srptool Invocation
2 @subsection Invoking srptool
3 @pindex srptool
4 @ignore
5 #  -*- buffer-read-only: t -*- vi: set ro:
6 #
7 # DO NOT EDIT THIS FILE   (invoke-srptool.texi)
8 #
9 # It has been AutoGen-ed  June  1, 2013 at 01:00:39 PM by AutoGen 5.17.3
10 # From the definitions    ../src/srptool-args.def
11 # and the template file   agtexi-cmd.tpl
12 @end ignore
13
14
15 Simple program that emulates the programs in the Stanford SRP (Secure
16 Remote Password) libraries using GnuTLS.  It is intended for use in  places
17 where you don't expect SRP authentication to be the used for system users.
18
19 In  brief,  to use SRP you need to create two files. These are the password
20 file that holds the users and the verifiers associated with  them  and  the
21 configuration file to hold the group parameters (called tpasswd.conf).
22
23 This section was generated by @strong{AutoGen},
24 using the @code{agtexi-cmd} template and the option descriptions for the @code{srptool} program.
25 This software is released under the GNU General Public License, version 3 or later.
26
27
28 @anchor{srptool usage}
29 @subsubheading srptool help/usage (@option{--help})
30 @cindex srptool help
31
32 This is the automatically generated usage text for srptool.
33
34 The text printed is the same whether selected with the @code{help} option
35 (@option{--help}) or the @code{more-help} option (@option{--more-help}).  @code{more-help} will print
36 the usage text by passing it through a pager program.
37 @code{more-help} is disabled on platforms without a working
38 @code{fork(2)} function.  The @code{PAGER} environment variable is
39 used to select the program, defaulting to @file{more}.  Both will exit
40 with a status code of 0.
41
42 @exampleindent 0
43 @example
44 srptool - GnuTLS SRP tool - Ver. 3.0.30
45 USAGE:  lt-srptool [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
46
47    -d, --debug=num            Enable debugging.
48                                 - It must be in the range:
49                                   0 to 9999
50    -i, --index                specify the index of the group parameters in tpasswd.conf to use.
51    -u, --username=str         specify a username
52    -p, --passwd=str           specify a password file.
53    -s, --salt=num             specify salt size.
54        --verify               just verify the password.
55    -v, --passwd-conf=str      specify a password conf file.
56        --create-conf=str      Generate a password configuration file.
57    -v, --version[=arg]        Output version information and exit
58    -h, --help                 Display extended usage information and exit
59    -!, --more-help            Extended usage information passed thru pager
60
61 Options are specified by doubled hyphens and their name or by a single
62 hyphen and the flag character.
63
64
65
66 Simple program that emulates the programs in the Stanford SRP (Secure
67 Remote Password) libraries using GnuTLS.  It is intended for use in places
68 where you don't expect SRP authentication to be the used for system users.
69
70 In brief, to use SRP you need to create two files.  These are the password
71 file that holds the users and the verifiers associated with them and the
72 configuration file to hold the group parameters (called tpasswd.conf).
73
74 please send bug reports to:  bug-gnutls@@gnu.org
75 @end example
76 @exampleindent 4
77
78 @anchor{srptool debug}
79 @subsubheading debug option (-d)
80
81 This is the ``enable debugging.'' option.
82 This option takes an argument number.
83 Specifies the debug level.
84 @anchor{srptool verify}
85 @subsubheading verify option
86
87 This is the ``just verify the password.'' option.
88 Verifies the password provided against the password file.
89 @anchor{srptool passwd-conf}
90 @subsubheading passwd-conf option (-v)
91
92 This is the ``specify a password conf file.'' option.
93 This option takes an argument string.
94 Specify a filename or a PKCS #11 URL to read the CAs from.
95 @anchor{srptool create-conf}
96 @subsubheading create-conf option
97
98 This is the ``generate a password configuration file.'' option.
99 This option takes an argument string.
100 This generates a password configuration file (tpasswd.conf)
101 containing the required for TLS parameters.
102 @anchor{srptool exit status}
103 @subsubheading srptool exit status
104
105 One of the following exit values will be returned:
106 @table @samp
107 @item 0 (EXIT_SUCCESS)
108 Successful program execution.
109 @item 1 (EXIT_FAILURE)
110 The operation failed or the command syntax was not valid.
111 @end table
112 @anchor{srptool See Also}
113 @subsubheading srptool See Also
114     gnutls-cli-debug (1), gnutls-serv (1), srptool (1), psktool (1), certtool (1)
115 @anchor{srptool Examples}
116 @subsubheading srptool Examples
117 To create @file{tpasswd.conf} which holds the g and n values for SRP protocol
118 (generator and a large prime), run:
119 @example
120 $ srptool --create-conf /etc/tpasswd.conf
121 @end example
122
123 This command will create @file{/etc/tpasswd} and will add user 'test' (you
124 will also be prompted for a password). Verifiers are stored by default
125 in the way libsrp expects.
126 @example
127 $ srptool --passwd /etc/tpasswd --passwd-conf /etc/tpasswd.conf -u test
128 @end example
129
130
131 This command will check against a password. If the password matches
132 the one in @file{/etc/tpasswd} you will get an ok.
133 @example
134 $ srptool --passwd /etc/tpasswd --passwd\-conf /etc/tpasswd.conf --verify -u test
135 @end example