Description
This function retrieves the best domain to use for SSL for a service.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The domain name. |
A valid domain name. |
example.com
|
service |
string |
Required The service's name. |
|
cpanel |
add_mail_subdomain |
string |
Any additional subdomains that are associated with the certificate. |
A valid string. |
|
Returns
Return |
Type |
Description |
Possible values |
Example |
is_self_signed |
Boolean |
Whether the certificate is self-signed. |
|
1 |
is_wild_card |
Boolean |
Whether the certificate is a wildcard certificate. |
|
0 |
ssldomain |
string |
The best domain to use to access the service. |
|
hostname.example.com |
ssldomain_matches_cert |
Boolean |
Whether the certificate also covers the mail service. |
|
1 |
cert_valid_not_after |
string |
The certificate's expiration date. |
A date in Unix time format. |
1394288638 |
cert_match_method |
string |
The method that the system used to match the certificate with the mail service. |
A valid string. |
hostname |