summaryrefslogtreecommitdiff
path: root/doc/manpages/srptool.1
blob: f21bdd8e6dbec0b06b9a75abf5cded2805acf0b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
.TH srptool 1 "21 Jan 2012" "3.0.12" "User Commands"
.\"
.\"  DO NOT EDIT THIS FILE   (srptool-args.man)
.\"  
.\"  It has been AutoGen-ed  January 21, 2012 at 11:32:42 AM by AutoGen 5.12
.\"  From the definitions    ../../src/srptool-args.def
.\"  and the template file   agman-cmd.tpl
.\"
.SH NAME
srptool \- GnuTLS SRP tool
.SH SYNOPSIS
.B srptool
.\" Mixture of short (flag) options and long options
.RB [ \-\fIflag\fP " [\fIvalue\fP]]... [" \-\-\fIopt\-name\fP " [[=| ]\fIvalue\fP]]..." 
.PP
Operands and options may be intermixed.  They will be reordered.
.SH "DESCRIPTION"
Simple program that emulates the programs in the Stanford SRP (Secure
Remote Password) libraries using GnuTLS.  It is intended for use in  places
where you don't expect SRP authentication to be the used for system users.
In  brief,  to use SRP you need to create two files. These are the password
file that holds the users and the verifiers associated with  them  and  the
configuration file to hold the group parameters (called tpasswd.conf).
.SH "OPTIONS"
.TP
.BR \-d " \fInumber\fP, " \-\-debug "=" \fInumber\fP
Enable debugging..
This option takes an integer number as its argument.
The value of \fInumber\fP is constrained to being:
.in +4
.nf
.na
in the range  0 through 9999
.fi
.in -4
.sp
Specifies the debug level.
.TP
.BR \-i ", " -\-index
specify the index of the group parameters in tpasswd.conf to use..
.sp
.TP
.BR \-u " \fIstring\fP, " \-\-username "=" \fIstring\fP
specify a username.
.sp
.TP
.BR \-p " \fIstring\fP, " \-\-passwd "=" \fIstring\fP
specify a password file..
.sp
.TP
.BR \-s " \fInumber\fP, " \-\-salt "=" \fInumber\fP
specify salt size for crypt algorithm..
This option takes an integer number as its argument.
.sp
.TP
.BR \-\-verify
just verify the password..
.sp
Verifies the password provided against the password file.
.TP
.BR \-v " \fIstring\fP, " \-\-passwd\-conf "=" \fIstring\fP
specify a password conf file..
.sp
Specify a filename or a PKCS #11 URL to read the CAs from.
.TP
.BR \-\-create\-conf "=\fIstring\fP"
Generate a password configuration file..
.sp
This generates a password configuration file (tpasswd.conf)
containing the required for TLS parameters.
.TP
.BR \-? , " \-\-help"
Display usage information and exit.
.TP
.BR \-! , " \-\-more-help"
Pass the extended usage information through a pager.
.TP
.BR \-v " [{\fIv|c|n\fP}]," " \-\-version" "[=\fI{v|c|n}\fP]"
Output version of program and exit.  The default mode is `v', a simple
version.  The `c' mode will print copyright information and `n' will
print the full copyright notice.
.SH EXAMPLES
To create \fItpasswd.conf\fP which holds the g and n values for SRP protocol
(generator and a large prime), run:
.br
.in +4
.nf
$ srptool \-\-create\-conf /etc/tpasswd.conf
.in -4
.fi
.sp
This command will create \fI/etc/tpasswd\fP and will add user 'test' (you
will also be prompted for a password). Verifiers are stored by default
in the way libsrp expects.
.br
.in +4
.nf
srptool \-\-passwd /etc/tpasswd \-\-passwd\-conf /etc/tpasswd.conf \-u test
.in -4
.fi
.sp
.sp
This command will check against a password. If the password matches
the one in \fI/etc/tpasswd\fP you will get an ok.
.br
.in +4
.nf
$ srptool \-\-passwd /etc/tpasswd \-\-passwd\-conf /etc/tpasswd.conf \-\-verify \-u test
.in -4
.fi
.SH "EXIT STATUS"
One of the following exit values will be returned:
.TP
.BR 0
Successful program execution.
.TP
.BR 1
The operation failed or the command syntax was not valid.
.SH "SEE ALSO"
    gnutls-cli-debug (1), gnutls-serv (1), srptool (1), psktool (1), certtool (1)
.SH "AUTHORS"
Nikos Mavrogiannopoulos and Simon Josefsson
.SH "COPYRIGHT"
Copyright (C) 2000-2012 Free Software Foundation all rights reserved.
This program is released under the terms of the GNU General Public License, version 3 or later.
.SH "BUGS"
Please send bug reports to: bug-gnutls@gnu.org
.SH "NOTES"
This manual page was \fIAutoGen\fP-erated from the \fBsrptool\fP
option definitions.