< Home

ca-certificate (cloud sandbox view)

Function

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

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

Format

ca-certificate certificate-file-name

undo ca-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 ca certificate (default_ca.cer) to interwork with the cloud sandbox through HTTPS.

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

Example

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

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