This function retrieves the most secure domain for a service.
required | string or string or string A domain name, cPanel username, or email address. Example: domain=example.com |
service required | string The service's name.
Example: service=cpanel |
add_mail_subdomain | integer Default: 0 Whether to append For example, if you specify the domain
Example: add_mail_subdomain=0 |
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --user=username SSL get_cn_name domain='example.com' service='cpanel'
{- "apiversion": 3,
- "func": "get_cn_name",
- "module": "SSL",
- "result": {
- "data": {
- "cert_match_method": "hostname",
- "cert_valid_not_after": 1394288638,
- "is_currently_valid": 0,
- "is_self_signed": 1,
- "is_wild_card": 0,
- "ssldomain": "hostname.example.com",
- "ssldomain_matches_cert": 1
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}