Description
This function retrieves SSL certificates for a private key.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
You must include one of the following parameters:
Parameter |
Type |
Description |
Possible values |
Example |
id |
string |
The key's ID. |
A valid string. |
|
friendly_name |
string |
The key's friendly name. |
A valid string. |
TestKey |
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 |
issuer.organizationName |
string |
The certificate's organization name. |
A valid string. |
The Example Organization |
modulus |
string |
The certificate's modulus. |
A valid string. |
|
subject.commonName |
string |
The certificate's common name. |
A valid domain. |
example.com |
not_before |
string |
When the certificate started. |
A date in Unix time format. |
1415123822 |
modulus_length |
string |
The length of the certificate's modulus. |
A positive integer. |
2048 |
not_after |
string |
When the certificate expired. |
A date in Unix time format. |
1446659822 |
created |
string |
When the certificate was created. |
A date in Unix time format. |
1415123822 |
domains |
array |
The domains that the certificate covers. |
A valid domain or domains. |
example.com |
issuer.commonName |
string |
The name that issued the certificate. |
Usually, a valid domain. |
example.com |
friendly_name |
string |
The certificate's friendly name. |
A valid string. |
TestCert |
id |
string |
The certificate's ID. |
A valid string. |
|