E.5 Converting the certificate format
The following describes the command for converting the content of the certificate format provided by JP1/AJS3 - Web Console. The provided command varies depending on the version of JP1/AJS3 - Web Console.
- Format
-
For JP1/AJS3 - Web Console version 11-10-02 or earlier, or version 11-00-10 or earlier.
certutil cert -inform input-format -outform output-format -in input-file -out output-file
The path to be specified for the certutil command is JP1/AJS3-Web-Consoleinstallation-folder\uCPSB\httpsd\sbin\certutil for Windows, and /opt/jp1ajs3web/uCPSB/httpsd/sbin/certutil for Linux.
For a version other than those listed above:
- In Windows:
openssl.bat x509 -inform input-format -outform output-format -in input-file -out output-file
The path of the openssl.bat is JP1/AJS3-Web-Console-installation-folder\uCPSB\httpsd\sbin\openssl.bat.
For details about execution permission required for the openssl.bat, see the official website of OpenSSL.
- In Linux:
openssl.sh x509 -inform input-format -outform output-format -in input-file -out output-file
The path of the openssl.sh is /opt/jp1ajs3web/uCPSB/httpsd/sbin/openssl.sh.
For details about execution permission required for the openssl.sh, see the official website of OpenSSL.
- Parameters
-
- -inform input-format
-
Specify the input format of the certificate file before conversion. Specifiable input formats are as follows:
-
DER
-
PEM
If this argument is omitted in the certutil cert command, the value PEM will be used. For the openssl.bat x509 command or the openssl.sh x509 command, you cannot omit this argument.
-
- -outform output-format
-
-
DER
-
PEM
If this argument is omitted in the certutil cert command, the value PEM will be used. For the openssl.bat x509 command or the openssl.sh x509 command, you cannot omit this argument.
-
- -in input-file
-
Specify the certificate file before conversion.
- -out output-file
-
Specify the certificate file after conversion.
- Usage example 1
-
The following example shows how to use the certutil cert command to convert a certificate (httpsd.pem) from the DER format to the PEM format:
certutil cert -inform DER -outform PEM -in httpsd.der -out httpsd.pem
- Usage example 2
-
The following example shows how to use the openssl.bat x509 command to convert a certificate (httpsd.pem) from the DER format to the PEM format:
openssl.bat x509 -inform DER -outform PEM -in httpsd.der -out httpsd.pem