< Home

public-key algorithm

Function

The public-key algorithm command configures the public key encryption algorithm.

Format

public-key algorithm { rsa | sm2 }

Parameters

Parameter Description Value

rsa

Indicates the RSA algorithm.

-

sm2

Indicates the SM2 algorithm.

-

Views

SSL offloading profile view

Default Level

2: Configuration level

Usage Guidelines

By default, the encryption algorithm is RSA.

When Public Key Algorithm is set to SM2, the device can use only the 128-bit SM4 encryption with SM2 and a SM3 MAC as the cipher suite.

The FW supports this command only after the trusted access proxy component package is loaded. For details about the component package, see Dynamic Loading.

Example

# Set the public key encryption algorithm to SM2.

<sysname> system-view
[sysname] slb
[sysname-slb] ssl-profile test
[sysname-slb-ssl-profile-0] public-key algorithm sm2 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >