8.3.7 selfsigned.bat (creating a self-signed server certificate)
- Organization of this subsection
(1) Function
Creates a self-signed server certificate to be used for immediate use of JP1/DH - Server for the 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
selfsigned.bat -in CSR-file -out certificate-file [-sign {MD5|SHA1|SHA224|SHA256|SHA384|SHA512}] -signkey key-file -days number-of-days-of-validity
(4) Arguments
- -in CSR-file
-
Specify the CSR file created in 8.3.6 selfsignedcertreq.bat (creating a CSR (certificate signing request)).
- -out certificate-file
-
Specify the name of the self-signed server certificate file to be created.
- -sign {MD5|SHA1|SHA224|SHA256|SHA384|SHA512}
-
Specify the signature algorithm. You can specify the following algorithms:
MD5, SHA1, SHA224, SHA256, SHA384, SHA512
If you omit this argument, SHA1 is used.
- -signkey key-file
-
Specify the secret key created in 8.3.5 selfsignedkeygen.bat (creating a secret key).
- -days number-of-days-of-validity
-
Specify the period for which the created certificate is valid in units of days. Note that the command execution day is automatically set as the starting day of the valid period and you cannot change the starting day.
(5) Execution results
A self-signed server certificate is created in the following folder:
installation-folder\bin\
(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 or Windows Server 2012 R2, 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.