| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
4.3.2.2 Invoking psktool
Program that generates random keys for use with TLS-PSK. The keys are stored in hexadecimal format in a key file.
This section was generated by AutoGen,
using the agtexi-cmd template and the option descriptions for the psktool program.
This software is released under the GNU General Public License, version 3 or later.
psktool help/usage (‘--help’)
This is the automatically generated usage text for psktool.
The text printed is the same whether selected with the help option
(‘--help’) or the more-help option (‘--more-help’).  more-help will print
the usage text by passing it through a pager program.
more-help is disabled on platforms without a working
fork(2) function.  The PAGER environment variable is
used to select the program, defaulting to ‘more’.  Both will exit
with a status code of 0.
psktool - GnuTLS PSK tool
Usage:  psktool [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
   -d, --debug=num            Enable debugging
                                - it must be in the range:
                                  0 to 9999
   -s, --keysize=num          specify the key size in bytes
                                - it must be in the range:
                                  0 to 512
   -u, --username=str         specify a username
   -p, --passwd=str           specify a password file
   -v, --version[=arg]        output version information and exit
   -h, --help                 display extended usage information and exit
   -!, --more-help            extended usage information passed thru pager
Options are specified by doubled hyphens and their name or by a single
hyphen and the flag character.
Program that generates random keys for use with TLS-PSK.  The keys are
stored in hexadecimal format in a key file.
debug option (-d)
This is the “enable debugging” option. This option takes a number argument. Specifies the debug level.
psktool exit status
One of the following exit values will be returned:
- ‘0 (EXIT_SUCCESS)’
- Successful program execution. 
- ‘1 (EXIT_FAILURE)’
- The operation failed or the command syntax was not valid. 
psktool See Also
gnutls-cli-debug (1), gnutls-serv (1), srptool (1), certtool (1)
psktool Examples
To add a user ’psk_identity’ in ‘passwd.psk’ for use with GnuTLS run:
$ ./psktool -u psk_identity -p passwd.psk Generating a random key for user 'psk_identity' Key stored to passwd.psk $ cat psks.txt psk_identity:88f3824b3e5659f52d00e959bacab954b6540344 $
This command will create ‘passwd.psk’ if it does not exist and will add user ’psk_identity’ (you will also be prompted for a password).
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
 
  This document was generated on May 31, 2014 using texi2html 5.0.
 
 
