In Progress How to use "uapi SubDomain addsubdomain" with automatically generated SSL?

hansaserver

Registered
Sep 1, 2013
2
0
51
cPanel Access Level
DataCenter Provider
When I create subdomain from CPanel GUI, it also generates the CPanel issued certificate for subdomain. But when I use SubDomain addsubdomain command, certificate is not genrerated.

Code:
uapi --output=json SubDomain addsubdomain domain="$subDomain" rootdomain="$rootDomain" dir="/_subdomains/$subDomain" > "$HOME/tmp/uapi-result-subdomain.json"
How I could easily get with UAPI the certificate for this new subdomain?