Hitachi

JP1 Version 13 JP1/Base User's Guide


openssl

Organization of this page

Function

The openssl command is provided by OpenSSL.

Format

For details about the format (options) of the openssl command, see the official website of OpenSSL.

Required execution permission

For details about execution permission required for the openssl command, see the official website of OpenSSL.

Command directory

OS

Command directory

Windows

32-bit

installation-folder\ssl\32mt\bin

  • AIX

  • Linux

32-bit, multithread (for compatibility)

/opt/jp1base/ssl/32mt/bin

32-bit, single thread (for compatibility)

/opt/jp1base/ssl/32st/bin

64-bit, multithread

/opt/jp1base/ssl/64mt/bin

64-bit, single thread

/opt/jp1base/ssl/64st/bin

Notes

Examples

The following shows examples of executing the openssl command.

When creating private key jp1basesslecckey.pem with the elliptic-curve cipher name prime256v1 in ECC format:
openssl ecparam -genkey -noout -name prime256v1 -out jp1basesslecckey.pem
When converting private key jp1basesslecckey.pem to private key jp1basessleccpkcs8key.pem in PKCS#8 format:
openssl pkcs8 -topk8 jp1basesslecckey.pem -out jp1basessleccpkcs8key.pem
To create a private key jp1basesslkey.pem in RSA format:
openssl genrsa 2048 -out jp1basesslkey.pem
To create a CSR jp1base.csr:
openssl req -key jp1basesslkey.pem -out jp1base.csr
To check the expiration date of a server certificate jp1basessl.pem:
openssl x509 -text -noout -in jp1basessl.pem

Execution result (excerpts):

Validity
Not Before: Jul 21 01:31:49 2015 GMT
Not After: Jul 18 01:31:49 2025 GMT

Not Before indicates the date and time when the server certificate was issued.

Not After indicates the expiration date of the server certificate.