The certificate-server sm2 encryption command sets the encryption certificate for the virtual gateway.
The undo certificate-server sm2 encryption command restores the default encryption certificate.
certificate-server sm2 encryption certificate-name enable
undo certificate-server sm2 encryption
| Parameter | Description | Value |
|---|---|---|
| certificate-name | Specifies the name of an encryption certificate. | The value is a string of 1 to 64 case-insensitive characters. |
By default, the encryption certificate of the virtual gateway is automatically generated. You can also apply to an authority for an encryption certificate.
The encryption certificate is used for certificate authentication. When an SSL connection is set up between a client and a virtual gateway, the virtual gateway sends the encryption certificate to the client. The value of the CN field in the encryption certificate must be the same as the virtual gateway address or domain name.
Before configuring this certificate, you need to import the certificate to the system through pki import-certificate.