< Home

api rsa-key-pair name

Function

The api rsa-key-pair name command configures the RSA key pair of API NETCONF.

The undo api rsa-key-pair name command cancels the preceding configuration.

Format

api rsa-key-pair name key-name

undo api rsa-key-pair

Parameters

Parameter Description Value
key-name Specifies the name of an RSA key pair. The value is a string of 1 to 64 case-sensitive characters. Spaces or question marks (?) are not supported. The value must be the name of an existing key pair in the root system.

Views

API view

Default Level

2: Configuration level

Usage Guidelines

When using the API NETCONF function, you can periodically configure the RSA key pair to guarantee service access security.

Example

# Set the RSA key pair of API NETCONF to key-1 in PKI.

<sysname> system-view
[sysname] api
[sysname-api] api rsa-key-pair name key-1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >