Syntax
serverCertificates list
serverCertificates view [alias]
serverCertificates import [alias] [uploadedfilename/path] [isChainOfTrust] [password]
serverCertificates delete [alias]
For example, serverCertificates import DMCC /tmp/dmcc.txt true ahvc1234
where:
Argument |
Description |
list |
Lists server certificates present on the server. |
view |
View details of mentioned server certificate. |
import |
Imports mentioned server Certificate. |
delete |
Deletes mentioned server certificate. |
alias |
Suitable name for a server certificate given by user. |
uploadedfilename/path |
File name or absolute path of the certificate user going to import. |
isChainOfTrust |
Allowed values are true or false. |
password |
Password is optional depending on the type of certificate. |
Return codes:
Return code |
Description |
4 |
Switch to root user to execute the script. |
5 |
Error reading server certificate repository to list certificates. |
6 |
Certificate does not exist. |
7 |
Import failed. Certificate request not found. |
8 |
Alias name should be one of aeservices,server,rsyslog,ldap,cmtls,web. |
9 |
Certificate directory does not exist. |
10 |
Certificate with this alias already exists. |
11 |
Import file must be PEM or pfx file. |
12 |
Establish chain of trust is required for importing pkcs12 file. |
13 |
Certificate file is empty or unavailable. |
14 |
Error importing certificate. |
15 |
Error extracting PEM file. |
16 |
Wrong Password entered. |
17 |
Exception in deleting certificate request while overriding. |
18 |
Certificate deletion failed. |