Question
How can the included and excluded domains for AutoSSL be managed from the command line?
Answer
Note: The commands must have the $user variable replaced with the cPanel username you are trying to edit. The domain.tld is used as a placeholder and should be replaced by the domain you want to include or exclude in AutoSSL. To include or exclude multiple domains, use a comma-separated list in the domains field.
For example, domains='domain.tld,domain2.tld,domain3.tld'.
-
To include a domain in AutoSSL, run the following API as the root user using SSH or the Terminal feature in WHM
# uapi --user=$user SSL remove_autossl_excluded_domains domains='domain.tld'
-
To exclude a domain in AutoSSL, run the following API as the root user using SSH or the Terminal feature in WHM:
# uapi --user=$user SSL add_autossl_excluded_domains domains='domain.tld'
Note: The domain.tld is used as a placeholder and should be replaced by the domain you want to include or exclude in AutoSSL. To include or exclude multiple domains, use a comma-separated list in the domains field.
For example, domains='domain.tld,domain2.tld,domain3.tld'.
-
To include a domain in AutoSSL, run the following API as the cPanel user using SSH or the Terminal feature in the account's cPanel:
# uapi SSL remove_autossl_excluded_domains domains='domain.tld'
-
To exclude a domain in AutoSSL, run the following API as the cPanel user using SSH or the Terminal feature in the account's cPanel:
# uapi SSL add_autossl_excluded_domains domains='domain.tld'
Additional resources
WHM API - AutoSSL Generated Certificates
cPanel UAPI - AutoSSL Generated Certificates
How can I remove all excluded domains for AutoSSL via the command line
Comments
0 comments
Article is closed for comments.