-dnum, --debug=num Enable debugging. This option takes an integer number as its argument. The value of
num is constrained to being:
in the range 0 through 9999
Specifies the debug level.
-snum, --keysize=num Specify the key size in bytes (default is 32-bytes or 256-bits). This option takes
an integer number as its argument. The value of num is constrained to being:
in the range 0 through 512
-ustr, --username=str Specify the username to use.
-pstr, --pskfile=str Specify a pre-shared key file.
This option will specify the pre-shared key file to store the generated keys.
--passwd This is an alias for the --pskfile option.
NOTE:THISOPTIONISDEPRECATED-varg, --version=arg 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.
-h, --help Display usage information and exit.
-!, --more-help Pass the extended usage information through a pager.
EXAMPLES
To add a user 'psk_identity' in keys.psk for use with GnuTLS run:
$ ./psktool -u psk_identity -p keys.psk
Generating a random key for user 'psk_identity'
Key stored to keys.psk
$ cat keys.psk
psk_identity:88f3824b3e5659f52d00e959bacab954b6540344
$
This command will create keys.psk if it does not exist and will add user 'psk_identity'.