Disabling expiring SSL notifications through shell
I wonder, why in 2023 we still have to have a shell script to disable expiring SSL notifications for cPanel users? Just installed new server and forgot to setup the cron and support team got quite a few support tickets about it. Notifications are disabled in WHM, why are they still being sent out???
Attaching settings and user-email.
The script, that we run daily is the following.
#!/bin/bash
cd /var/cpanel/users
for user in *
do
cpapi2 --user=$user CustInfo savecontactinfo notify_autossl_renewal=0 notify_autossl_renewal_coverage=0 notify_autossl_expiry_coverage=0 notify_autossl_expiry=0 notify_ssl_expiry=0
done
by the way - the "code" icon in this textarea is not working - giving me list of forums.
-
Hey hey! I did reach out to the team to see if there was a better way to handle this, and I'll let you know what they have to say when I hear back. 0 -
I know we talked about this a while back, but I don't remember all the details that happened. So, I just want to clarify: -you create a cPanel & WHM server -you disable the notifications globally in WHM >> Manage AutoSSL with the "Disable AutoSSL user notifications" option -you create a cPanel account -they receive the "your SSL will expire soon" warning Is that all correct? If so, could you submit a ticket to our team from one of the machines where this is happening so we can do some more investigation? 0
Please sign in to leave a comment.
Comments
2 comments