E.6 Converting the certificate format
The following describes the command for converting the content of the certificate format provided by JP1/AJS3 - Web Console.
- Format
-
- 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
-
- -outform output-format
-
Specify the outform format of the certificate file after conversion. Specifiable output formats are as follows:
-
DER
-
PEM
-
- -in input-file
-
Specify the certificate file before conversion.
- -out output-file
-
Specify the certificate file after conversion.
- Usage example
-
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