Batch remove SSL
Dears ,
I enable by mistake the SSL for all accounts in the server ( trough AutoSSL), and now i want to remove them all and activate SSL only for my customers who did pay it .
My question : how to batch remove the SSL for all domains/subdomains ? because trough WHM => "Manage SSL Host" i can do it only one by one, any tips would be really helpful.
-
Hello, There are no features in cPanel/WHM that will allow you to delete multiple SSL certificates at the same time. You'd have to develop a custom bash script that loops the following UAPI function for all domain names on your system: UAPI Functions - SSL::delete_ssl - Software Development Kit - cPanel Documentation Keep in mind that if the account does not have a SSL certificate installed (either through AutoSSL or a third-party), then a self-signed certificate is automatically applied to the domain names under the account. Thank you. 0
Please sign in to leave a comment.
Comments
1 comment