Description
This function deletes an SSL certificate.
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 certificate's ID. |
A valid string. |
|
friendly_name |
string |
The certificate's friendly name. |
A valid string. |
TestCert |
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. |
Organization |
modulus |
string |
The certificate's modulus. |
A valid string. |
Click to view... |
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. |
1365713671 |
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. |
1397249671 |
created |
string |
When the certificate was created. |
A date in Unix time format. |
1365713671 |
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. |
example_com_cb497_a394d_1397249671_d1272da8f13a1fd837493a5ad1f0a0f3 |