This article provides a guide demonstrating the process to remove AutoSSL excluded domains from the command line. This guide is intended for root-level administrators of cPanel VPS and cPanel dedicated servers.
How to Remove AutoSSL Excluded Domains from Command Line
AutoSSL excluded domains are domains which are explicitly excluded from AutoSSL SSL management and renewal processes.
To remove AutoSSL excluded domains from command line, follow the steps below:
- SSH the server as root or utilize the WHM 'Terminal' interface.
- Run the corresponding command (based on intended result):
- List all users having domains excluded from AutoSSL:
whmapi1 listaccts --output=json | jq -r '.data.acct[].user' | while read user ; do echo $user ; whmapi1 --output=json get_autossl_user_excluded_domains username="$user" | jq -r '.data.payload[]' ; done - Remove all AutoSSL excluded domains for a specified user:
user="SPECIFIED_USER" ; domains=$(whmapi1 --output=json get_autossl_user_excluded_domains username="$user" | jq -r '[.data.payload[].excluded_domain] | join(",")'); [[ -n "$domains" ]] && echo "Removing domains for $user: $domains" && uapi --user="$user" SSL remove_autossl_excluded_domains domains="$domains"eReplace 'SPECIFIED_USER' with the actual username of the specified account.
- Remove AutoSSL excluded domains from all accounts (server-wide)::
whmapi1 listaccts --output=json | jq -r '.data.acct[].user' | while read user; do domains=$(whmapi1 --output=json get_autossl_user_excluded_domains username="$user" | jq -r '[.data.payload[].excluded_domain] | join(",")'); [[ -n "$domains" ]] && echo "Removing domains for $user: $domains" && uapi --user="$user" SSL remove_autossl_excluded_domains domains="$domains"; done
- List all users having domains excluded from AutoSSL:
- That's it!
Conclusion
You now know how to remove AutoSSL excluded domains from command line.

👀 Choose SSD-powered VPS servers for increased speed, power, and security! Now 50% off- starting from only $3.19/mo.