racoon2-pskgen man page
pskgen — Pre-shared key generater and converter for IKE
|pskgen||-r [-s length] [-o file] [-d]|
|pskgen||-i file [-h] [-o file] [-d]|
|pskgen||-e file [-o file] [-d]|
pskgen creates a pre-share key file for the iked of the Racoon2 system. There are three modes. The first is that it will create a randomized key. The second is that it will create the key from the input file. Note that the Racoon2 only uses the first line of the input file that is plain text format except the case when the -h option is not specified. pskgen ignores the second line of the file specified and more than that. The third is that it will convert the key file to the format of the -h option.
Randomized key mode
File specific mode
specify the input file. ‘
-’ means the standard input.
assumed that the input file is writted by the following syntax: 0x leading one or two of hexadecimal number separated space characters. For example:
0x72 0x61 0x63 0x6f 0x6f 0x6e
specify the output file.
debug mode. no harm to any file.
racoon2(7), racoon2.conf(5), iked(8)