Description
This function lists an account's certificates.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
is_self_signed |
Boolean |
Whether the certificate is self-signed. |
|
1 |
validation_type |
string |
The certificate's validation type. Note: We introduced this return in cPanel & WHM version 56. |
|
dv |
signature_algorithm |
string |
The signature algorithm of the certificate. Note: We introduced this return in cPanel & WHM version 56. |
A valid OID hash algorithm name. |
sha256WithRSAEncryption |
domain_is_configured |
Boolean |
Whether the certificate is installed on the account. |
|
1 |
issuer.organizationName |
string |
The certificate's organization. |
A valid string. |
Organization |
modulus |
string |
The certificate's modulus. |
A valid string. |
|
subject.commonName |
string |
The certificate's Common Name. |
A valid domain name. |
example.com |
not_before |
integer |
The certificate's start time. |
A date in Unix time format. |
1365633490 |
modulus_length |
integer |
The modulus' length. |
A positive integer. |
2048 |
not_after |
integer |
The certificate's expiration time. |
A date in Unix time format. |
1397169490 |
created |
integer |
When the certificate was created. |
A date in Unix time format. |
1365633887 |
domains |
string |
The domains that the certificate covers. |
A valid domain or list of domains. |
example.com |
issuer.commonName |
string |
The issuer's name. |
A valid string, typically a domain name. |
example.com |
friendly_name |
string |
The certificate's friendly name. |
A valid string. |
TestCert |
id |
string |
The certificate's ID. |
A valid string. |
|