This function retrieves the most secure domain for a service.
required | string or A domain name, cPanel username, or email address. Example: |
service required | string The service's name.
Example: |
add | integer Default: Whether to append For example, if you specify the domain
Example: |
HTTP Request was successful.
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 --output=jsonpretty \ --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
}
}