chsystemcert
Use the chsystemcert command to manage the Secure Sockets Layer (SSL) certificate that is installed on a system.
Syntax
Parameters
- Generates a self-signed SSL certificate. If you do not specify -mkselfsigned, you must specify -mkrequest, -export, or -install.
- Generates a certificate request. If you do not specify -mkrequest, you must specify -mkselfsigned, -export, or -install.
- For -mkselfsigned, this parameter specifies the 2-digit country code for the self-signed certificate.
- For -mkselfsigned, this parameter specifies the state
information for the self-signed certificate. The value can be an ASCII string from
0-128characters. - For -mkselfsigned, this parameter specifies the locality information for the self-signed certificate. The value can be an ASCII string in the range 0 - 128 characters.
- For -mkselfsigned, this parameter specifies the organization information for the SSL certificate. The value can be an ASCII string in the range 0 - 64 characters.
- For -mkselfsigned, this parameter specifies the organization unit information for the SSL certificate. The value can be an ASCII string in the range 0 - 64 characters.
- For -mkselfsigned, this parameter specifies the email address that is used in the SSL certificate. The value can be an ASCII string in the range 0 - 64 characters.
- For -mkselfsigned, this parameter specifies the common name for the SSL certificate. The value can be an ASCII string of 0 - 64 characters.
- Specifies the number of days (
1-9000) that the self-signed certificate is valid. - Specifies the SSL certificate key type.
- rsa2048
- ecdsa384
- ecdsa521
- Install a certificate. If you do not specify -install, you must specify -mkselfsigned, -mkrequest, or -export.
- Specifies the absolute path name of the certificate to install.
- Exports the current SSL certificate. The certificate is exported to the /dumps/certificate.pem directory on the configuration node. If you do not specify -export, you must specify -mkselfsigned, -mkrequest, or -install.
- Specifies that the certificate request can be deleted.
Description
Use this command to manage
the SSL certificate that is installed on a system. You can also do the following items.
- Generate a new self-signed SSL certificate.
- Create a certificate request to be copied from the system and signed by a certificate
authority (CA).Note: The signed certificate that is returned by the CA can be installed.
- Export the current SSL certificate (for example to allow the certificate to be imported into a key server).
Important: You must specify one of the following parameters:
- -mkselfsigned
- -mkrequest
- -install
- -export
An invocation example to create a self-signed certificate
chsystemcert -mkselfsignedThe detailed resulting output
No feedbackAn invocation example to create a self-signed certificate with a common name
chsystemcert -mkselfsigned -commonname weiland.snpp.comThe detailed resulting output
No feedbackAn invocation example to create a self-signed certificate with a key type and a 1-year validity period
chsystemcert -mkselfsigned -keytype ecdsa521 -validity 365The detailed resulting output
No feedback