This function retrieves the most secure domain for a service.
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
}
}