1psktool(1) User Commands psktool(1)
2
3
4
6 psktool - GnuTLS PSK tool
7
9 psktool [-flags] [-flag [value]] [--option-name[[=| ]value]]
10
11 All arguments must be options.
12
14 Program that generates random keys for use with TLS-PSK. The keys are
15 stored in hexadecimal format in a key file.
16
17
19 -d num, --debug=num
20 Enable debugging. This option takes an integer number as its
21 argument. The value of num is constrained to being:
22 in the range 0 through 9999
23
24 Specifies the debug level.
25
26 -s num, --keysize=num
27 Specify the key size in bytes (default is 32-bytes or 256-bits).
28 This option takes an integer number as its argument. The value
29 of num is constrained to being:
30 in the range 0 through 512
31
32
33 -u str, --username=str
34 Specify the username to use.
35
36
37 -p str, --pskfile=str
38 Specify a pre-shared key file.
39
40 This option will specify the pre-shared key file to store the
41 generated keys.
42
43 --passwd
44 This is an alias for the --pskfile option.
45
46 NOTE: THIS OPTION IS DEPRECATED
47
48 -v arg, --version=arg
49 Output version of program and exit. The default mode is `v', a
50 simple version. The `c' mode will print copyright information
51 and `n' will print the full copyright notice.
52
53 -h, --help
54 Display usage information and exit.
55
56 -!, --more-help
57 Pass the extended usage information through a pager.
58
59
60
62 To add a user 'psk_identity' in keys.psk for use with GnuTLS run:
63 $ ./psktool -u psk_identity -p keys.psk
64 Generating a random key for user 'psk_identity'
65 Key stored to keys.psk
66 $ cat keys.psk
67 psk_identity:88f3824b3e5659f52d00e959bacab954b6540344
68 $
69
70 This command will create keys.psk if it does not exist and will add
71 user 'psk_identity'.
72
74 One of the following exit values will be returned:
75
76 0 (EXIT_SUCCESS)
77 Successful program execution.
78
79 1 (EXIT_FAILURE)
80 The operation failed or the command syntax was not valid.
81
83 gnutls-cli-debug (1), gnutls-serv (1), srptool (1), certtool (1)
84
87 Copyright (C) 2020-2023 Free Software Foundation, and others all rights
88 reserved. This program is released under the terms of the GNU General
89 Public License, version 3 or later
90
92 Please send bug reports to: bugs@gnutls.org
93
94
95
963.8.2 15 Nov 2023 psktool(1)