< Home

v-gateway public certificate-server sm2 encryption

Function

The v-gateway public certificate-server sm2 encryption command sets the encryption certificate shared by virtual gateways.

The undo v-gateway public certificate-server sm2 encryption command restores the default encryption certificate.

Format

v-gateway public certificate-server sm2 encryption certificate-name enable

undo v-gateway public 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

System view

Default Level

2: Configuration level

Usage Guidelines

This command is required when multiple virtual gateways share a public IP address. Only the public system administrator can run this command.

By default, the encryption certificate shared by virtual gateways 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 CN field value of the encryption certificate must be the same as the public IP address or public domain name.

Before configuring this certificate, you need to import the certificate to the system through pki import-certificate.

Example

# The encryption certificate abc.cer has been imported. Set it as the encryption certificate shared by virtual gateways.

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