CPANEL-38866 - How to exclude multiple domains of multiple cPanel accounts from AutoSSL via SSH
Hello,
Suppose these are my clients' cPanel accounts:
domain1.com (www and mail are in SSL/TLS Status option too)
domain2.com (www and mail are in SSL/TLS Status option too)
domain3.com (www and mail are in SSL/TLS Status option too)
domain4.com (www and mail are in SSL/TLS Status option too)
domain5.com (www and mail are in SSL/TLS Status option too)
In fact, they are 105 accounts.
I need to exclude each www and mail from AutoSSL renew, and only the main domain (domain1, domain2, ...) remain active in renewal progress.
How can I exclude them via SSH? Is there any way to do that instead of logging in to 105 single accounts:)?
-
Hey there! The closest thing I would have would be this API call: www.ip.domain.com
- www.mail.com The issue with the above command is that the respond is OK, but only the domain in the first parameter (in this case, it is www.domain.com is exluced. The doc says
domain=domain=example.com domain1=example1.com domain2=example2.com
but the syntax is wrong and if I run this command I get this error:[root@fqdn ~]# whmapi1 --output=jsonpretty add_autossl_user_excluded_domains username='user' domain=domain=www.ip.domain.com domain1=www.domain.com { "metadata" : { "reason" : "API failure: (XID 42pcds) You do not own the following domain: domain=www.ip.domain.com.", "command" : "add_autossl_user_excluded_domains", "version" : 1, "result" : 0 } }
0 - www.mail.com The issue with the above command is that the respond is OK, but only the domain in the first parameter (in this case, it is www.domain.com is exluced. The doc says
-
Delete this post please:) I see DST Root CA X3 Expiration and Let's Encrypt to update the certificates, but I'm curious about how this API works with multiple domains 0 -
Well sure enough, that's happening on my end as well. I'm looking into this now and I'll update you soon. 0 -
Update - we've fixed the typo and updated the command so it actually works. Check it out here: Disable AutoSSL for domain " cPanel & WHM Developer Portal 0 -
Thanks, it works now:) 0 -
I'm glad to hear that's working well! 0
Please sign in to leave a comment.
Comments
8 comments