1psktool(1)                       User Commands                      psktool(1)
2
3
4

NAME

6       psktool - GnuTLS PSK tool
7

SYNOPSIS

9       psktool [-flags] [-flag [value]] [--option-name[[=| ]value]]
10
11       All arguments must be options.
12
13

DESCRIPTION

15       Program   that generates random keys for use with TLS-PSK. The keys are
16       stored in hexadecimal format in a key file.
17

OPTIONS

19       -d number, --debug=number
20              Enable debugging.  This option takes an integer  number  as  its
21              argument.  The value of number is constrained to being:
22                  in the range  0 through 9999
23
24              Specifies the debug level.
25
26       -s number, --keysize=number
27              specify the key size in bytes.  This option takes an integer
28              number as its argument.  The value of number is constrained to
29              being:
30                  in the range  0 through 512
31
32
33       -u string, --username=string
34              specify a username.
35
36
37       -p string, --passwd=string
38              specify a password file.
39
40
41       -h, --help
42              Display usage information and exit.
43
44       -!, --more-help
45              Pass the extended usage information through a pager.
46
47       -v [{v|c|n --version [{v|c|n}]}]
48              Output version of program and exit.  The default mode is `v', a
49              simple version.  The `c' mode will print copyright information
50              and `n' will print the full copyright notice.
51

EXAMPLES

53       To add a user 'psk_identity' in passwd.psk for use with GnuTLS run:
54           $ ./psktool -u psk_identity -p passwd.psk
55           Generating a random key for user 'psk_identity'
56           Key stored to passwd.psk
57           $ cat psks.txt
58           psk_identity:88f3824b3e5659f52d00e959bacab954b6540344
59           $
60
61       This command will create passwd.psk if it does not exist and will add
62       user 'psk_identity' (you will also be prompted for a password).
63

EXIT STATUS

65       One of the following exit values will be returned:
66
67       0  (EXIT_SUCCESS)
68              Successful program execution.
69
70       1  (EXIT_FAILURE)
71              The operation failed or the command syntax was not valid.
72
73       70  (EX_SOFTWARE)
74              libopts had an internal operational error.  Please report it to
75              autogen-users@lists.sourceforge.net.  Thank you.
76

SEE ALSO

78           gnutls-cli-debug (1), gnutls-serv (1), srptool (1), certtool (1)
79

AUTHORS

81       Nikos Mavrogiannopoulos, Simon Josefsson and others; see
82       /usr/share/doc/gnutls/AUTHORS for a complete list.
83
85       Copyright (C) 2000-2018 Free Software Foundation, and others all rights
86       reserved.  This program is released under the terms of the GNU General
87       Public License, version 3 or later.
88

BUGS

90       Please send bug reports to: bugs@gnutls.org
91

NOTES

93       This manual page was AutoGen-erated from the psktool option definiā€
94       tions.
95
96
97
983.3.29                            16 Feb 2018                       psktool(1)
Impressum