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