SSL
cPanel Account Settings
Return SSL-encrypted domain for service access
This function retrieves the most appropriate SSL-encrypted domain to use to access a service.
get/get_best_ssldomain_for_service
Query parameters
servicestring required
Example:whostmgr
The service's name.
Response
HTTP Request was successful.
Example response
{
"data": {
"cert_match_method": "none",
"cert_valid_not_after": 1457452989,
"is_self_signed": 1,
"ssldomain": "hostname.example.com"
},
"metadata": {
"command": "get_best_ssldomain_for_service",
"reason": "OK",
"result": 1,
"version": 1
}
}