< Home

local-certificate (cloud sandbox view)

Function

The local-certificate command specifies the local certificate used by the device to interwork with the cloud sandbox through HTTPS.

The undo local-certificate command restores the local certificate used by the device to interwork with the cloud sandbox through HTTPS to the preset local certificate.

Format

local-certificate certificate-file-name

undo local-certificate

Parameters

Parameter Description Value

certificate-file-name

Specifies a certificate name.

NOTE:

Only certificates in PEM format are supported.

The value must be the name of an existing certificate.

Views

Cloud sandbox view

Default Level

2: Configuration level

Usage Guidelines

By default, the device uses the preset local certificate to interwork with the cloud sandbox through HTTPS.

When you run the undo local-certificate command, the local certificate used by the device to interwork with the cloud sandbox through HTTPS is restored to the preset local certificate. In this case, ensure that the preset local certificate exists in the system. Otherwise, an exception may occur during the restoration of the default configuration. If the preset local certificate has been deleted, you need to import it again before running the undo local-certificate command.

Example

# Set the local certificate used by the device to interwork with the cloud sandbox through HTTPS to sandbox_local.cer.

<sysname> system-view
[sysname] sandbox cloud
[sysname-sandbox-cloud] local-certificate sandbox_local.cer
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >