Syntax
trustCACertMgmt list
trustCACertMgmt view [alias]
trustCACertMgmt import [alias] [uploadedfilename/path]
trustCACertMgmt export [alias]
trustCACertMgmt delete [alias]
For example, trustCACertMgmt import DMCC /tmp/dmcc.txt
where:
Argument |
Description |
list |
Lists all trusted CA certificates present on the server. |
view |
View details of mentioned trusted CA Certificate. |
import |
Imports the mentioned trusted CA Certificate. |
export |
Exports or displays pem text of mentioned trusted CA Certificate. It can be redirected to a file in order to save it and can be used to import this certificate whenever and wherever required. |
delete |
Deletes the mentioned trusted CA Certificate. |
alias |
Suitable name for a trusted CA Certificate given by user. |
uploadedfilename/path |
File name or absolute path of the certificate user going to import. |
Return codes:
Return code |
Description |
4 |
No certificate with this name is present. |
5 |
Error reading trusted certificate repository to list certificates. |
6 |
Certificate with alias does not exist. |
7 |
Alias name format error. Allowed values: Alphanumeric chars, underscore (_), and hyphen (-). Max 31 chars. |
8 |
The import file must be a PEM file. |
9 |
The imported file does not exist. |
10 |
Verification for the imported file failed. |
11 |
Alias already exists. |
12 |
Certificate already exists. |
13 |
Switch to root user to execute the script |
14 |
Deletion of default certificate is denied. |
15 |
Keystore is not present. |