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.
| 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. |
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.