< Home

certificate-server sm2 encryption

Function

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.

Format

certificate-server sm2 encryption certificate-name enable

undo certificate-server sm2 encryption

Parameters

Parameter Description Value
certificate-name Specifies the name of an encryption certificate. The value is a string of 1 to 64 case-insensitive characters.

Views

Virtual gateway basic view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Set the encryption certificate of the virtual system to aaa.cer.

<sysname> system-view
[sysname] v-gateway gateway
[sysname-gateway] basic
[sysname-gateway-basic] certificate-server sm2 encryption aaa.cer enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >