12.3.6 selfsignedcertreq.bat (creating a CSR (certificate signing request))
- Organization of this subsection
(1) Function
Creates a CSR (certificate signing request) file 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
selfsignedcertreq.bat -key key-file -out CSR-file -subject "subject"
(4) Arguments
- Important
-
In the case of Linux, you cannot specify an argument containing single-byte spaces.
- -key key-file
-
Specify the secret key created in 12.3.5 selfsignedkeygen.bat (creating a secret key).
- -out CSR-file
-
Specify the name of the CSR (certificate signing request) file to be created.
- -subject "subject"
-
Specify the subject name of the certificate in the format described below. The values that you can specify are as follows:
"/C=2-character-country-code(JP for Japan)/ST=state-or-province-name/L=city-or-area-name/O=organization-name/OU=organization-unit-name/CN=FQDN-of-the-server-host"
An example of specification is as follows:
"/C=JP/ST=Tokyo/L=Shinagawa-ku/O=Hitachi.Ltd./OU=SoftwareDevelopment/CN=p1dhserver.foo1.foo2.co.jp"
- Important
-
You can specify values with alphanumeric characters and the following symbols:
A half# space, period (.), hyphen (-), and a half comma (,)
You cannot use a forward slash (/).
#: You can specify a single-byte space with Windows only.
(5) Execution results
A CSR (certificate signing request) file is created with the name 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.