SSL
cPanel Account SSL Management
Request best SSL domain for service
This function retrieves the most secure domain for a service.
get/SSL/get_cn_name
Query parameters
A domain name, cPanel username, or email address.
service'cpanel' | 'imap' | 'pop3' | 'smtp' required
Example:cpanel
The service's name.
- cpanel
- imap
- pop3
- smtp
add_mail_subdomain1 | 0
Whether to append mail to the domain value to find the best match.
For example, if you specify the domain example.com and call this parameter, the function only searches the mail.example.com service domains.
- 1 — Append mail to the domain value during the search.
- 0 — Match on the specified domain value only.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "get_cn_name",
"module": "SSL",
"result": {
"data": {
"cert_match_method": "hostname",
"cert_valid_not_after": 1394288638,
"is_self_signed": 1,
"ssldomain": "hostname.example.com",
"ssldomain_matches_cert": 1
},
"status": 1
}
}