12.3.5 selfsignedkeygen.bat (creating a secret key)
- Organization of this subsection
(1) Function
Creates a secret key to be used for immediate use of JP1/DH - Server for purposes such as testing and evaluation.
(2) Executor
A user with a built-in Administrator account or with Administrator permissions executes the command from the command prompt.#
- #
-
Do not execute a command directly. Use the command prompt to execute a command.
(3) Format
selfsignedkeygen.bat -out secret-key-file [-bits {512|1024|2048|4096}]
(4) Arguments
- Important
-
In the case of Linux, you cannot specify an argument containing single-byte spaces.
- -out secret-key-file
-
Specify the file to which the created secret key is output.
- [-bits {512|1024|2048|4096}]
-
Specify the bit length of a secret key to be created.
If you omit this operand, the underlined value is used.
- Important
-
Keys with a bit length of 1024 or lower are becoming more dangerous with decreased safety. Therefore, specify 2048 or higher for the bit length.
(5) Execution results
A secret key file is created in the folder specified for -out.
(6) Notes on using the command
Do not execute a command directly. Use the command prompt to execute a command.
If you have enabled UAC (User Account Control) in the operating system, use one of the following ways to execute a command:
-
Log in as a built-in Administrator user, start the command prompt, and then execute a command.
-
Log in as a user with Administrator permissions, start the command prompt by clicking Run as Administrator, and then execute a command.
-
Execute a command from a shortcut for the command prompt with the elevated privileges created at the time of JP1/DH - Server installation.#
- #
-
If you use a command prompt in this way in Windows Server 2012, Windows Server 2012 R2 or Windows Server 2016, you need to install Microsoft .NET Framework 3.5. For details about how to install Microsoft .NET Framework 3.5, see D. Installing .NET Framework 3.5.
Simultaneous executions of commands on the same machine are not supported.