1srptool(1) User Commands srptool(1)
2
3
4
6 srptool - GnuTLS SRP tool
7
9 srptool [-flags] [-flag [value]] [--option-name[[=| ]value]]
10
11 All arguments must be options.
12
14 Simple program that emulates the programs in the Stanford SRP (Secure
15 Remote Password) libraries using GnuTLS. It is intended for use in
16 places where you don't expect SRP authentication to be the used for
17 system users.
18
19 In brief, to use SRP you need to create two files. These are the
20 password file that holds the users and the verifiers associated with
21 them and the configuration file to hold the group parameters (called
22 tpasswd.conf).
23
24
26 -d num, --debug=num
27 Enable debugging. This option takes an integer number as its
28 argument. The value of num is constrained to being:
29 in the range 0 through 9999
30
31 Specifies the debug level.
32
33 -i num, --index=num
34 This option takes an integer number as its argument.
35
36 -u str, --username=str
37
38 -p str, --passwd=str
39
40 -s num, --salt=num
41 This option takes an integer number as its argument.
42
43 --verify
44 Verifies the password provided against the password file.
45
46 -v str, --passwd-conf=str
47 Specify a filename or a PKCS #11 URL to read the CAs from.
48
49 --create-conf=str
50 Generate a password configuration file.
51
52 This generates a password configuration file (tpasswd.conf) con‐
53 taining the required for TLS parameters.
54
55 -v arg, --version=arg
56 Output version of program and exit. The default mode is `v', a
57 simple version. The `c' mode will print copyright information
58 and `n' will print the full copyright notice.
59
60 -h, --help
61 Display usage information and exit.
62
63 -!, --more-help
64 Pass the extended usage information through a pager.
65
66
67
69 To create tpasswd.conf which holds the g and n values for SRP protocol
70 (generator and a large prime), run:
71 $ srptool --create-conf /etc/tpasswd.conf
72
73 This command will create /etc/tpasswd and will add user 'test' (you
74 will also be prompted for a password). Verifiers are stored by default
75 in the way libsrp expects.
76 $ srptool --passwd /etc/tpasswd --passwd-conf /etc/tpasswd.conf -u test
77
78
79 This command will check against a password. If the password matches the
80 one in /etc/tpasswd you will get an ok.
81 $ srptool --passwd /etc/tpasswd --passwd\-conf /etc/tpasswd.conf --verify -u test
82
84 One of the following exit values will be returned:
85
86 0 (EXIT_SUCCESS)
87 Successful program execution.
88
89 1 (EXIT_FAILURE)
90 The operation failed or the command syntax was not valid.
91
93 gnutls-cli-debug (1), gnutls-serv (1), srptool (1), psktool (1), cert‐
94 tool (1)
95
98 Copyright (C) 2020-2021 Free Software Foundation, and others all rights
99 reserved. This program is released under the terms of the GNU General
100 Public License, version 3 or later
101
103 Please send bug reports to: bugs@gnutls.org
104
105
106
1073.7.6 27 May 2022 srptool(1)