certs_manage.sh
Function
This command is used to manage certificates, including web and FusionDirector certificates. Specifically, it can query and delete unused certificates, and restore the previous certificate.
Syntax
certs_manage.sh [ACTION] [COMPONENT] [OPTION]
Parameter |
Mandatory/Optional |
Description |
|---|---|---|
ACTION |
Mandatory |
Operation type. Values:
NOTE:
|
COMPONENT |
Mandatory |
Certificate type. Values:
|
OPTION |
Optional |
When deleting a FusionDirector certificate, you need to specify the certificate name. The value is a string of 4 to 64 characters, including digits, uppercase letters, lowercase letters, underscores (_), and dots (.). The value cannot contain two consecutive dots (..). |
Usage Guidelines
You must run the certs_manage.sh command as the root user.
Examples
- Run the following command to switch to the directory containing the target script:
cd /usr/local/mindx/MindXOM/tools
- Manage certificates as required. The following uses a FusionDirector certificate as an example.
- Query unused certificates.
./certs_manage.sh getunusedcert web
- Delete unused certificates.
./certs_manage.sh deletecert fd-ccae a200_fd.crt
- Restore the previous certificate.
./certs_manage.sh restorecert fd-ccae
- Query unused certificates.
Parent topic: Command Reference