By the way: thanks @NanoGame for the script. At least with this we can stop future emails. And i didn't know we can execute Cpanel Api commands that easily from a bash script.
Great!
Great!
More information about each cPanel API 2 function is available on this post:Hi Texo, we are getting a lot of tickets about these notices too. This is a little shell script I wrote to change the notifications for the 5 AutoSSL notices off for every user on the server.
Save it to /root/something.sh, chmod 755 something.sh and then run it with ./something.sh
Adjust the 0 values on the line above to 1 if you want to keep a particular notification on.Code:#!/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
Hope this helps![]()
Hi Quarterstaff. Did you manage to find a solution to Cachewall preventing AutoSSL certs from updating? I have also found it necessary to disable Cachewall and do a manual check of AutoSSL to get cert updated.I was also seeing expired certs even though they are up to date in the backend. I turned off cachewall (xvarnish) and *poof* they are back. Likely related. rodpascoe - are you running varnish?
I've moved that particular issue to a separate thread for further discussion:But the problem still exists that the auto-ssl is no longer issuing certificate renewals behind cloudflare, is that correct?
I recommend reaching out to their support team to report the issue to see if this is something they have a patch for, or if they are working towards a resolution.Hi Quarterstaff. Did you manage to find a solution to Cachewall preventing AutoSSL certs from updating? I have also found it necessary to disable Cachewall and do a manual check of AutoSSL to get cert updated.
Hi stormy, All the problems are logged during each AutoSSL run and are viewable in the WHM »SSL/TLS »Manage AutoSSL » LogsI've also been hit by this problem and received a LOT of support tickets. I agree that this is way too confusing for end users and it should be disabled ASAP as a stop gap measure. It would be fantastic for WHM admins to be able to receive a summary of all issues though, or to be able check them out through the web interface.
I'm confused about that setting, because I did disable the notifications and they were still sent. I had to run the script quoted above to disable them.Certificate expiry notifications (both AutoSSL and non-AutoSSL) can already be disabled server-wide in WHM »Tweak Settings » Notifications » Send notifications when certificates approach expiry.
Hi @stormy,I'm confused about that setting, because I did disable the notifications and they were still sent. I had to run the script quoted above to disable them.
So what does it disable exactly? I'm on 68.0.12.
I'm not sure if it is helpful, however, we did add an API for this in v68:Thanks @cPanelNick! Yes, I know the logs page, but you have to comb through everything that has been done, success or failure. A list with all the issues would be really handy. Anyway, not worth it to start a feature request for that![]()
# whmapi1 get_autossl_problems_for_user username=myusername
---
data:
problems_by_domain:
-
domain: this.tld
log: 2017-11-14T05:18:03Z
problem: “this.tld” does not resolve to any IPv4 addresses on the internet.
time: 2017-11-14T05:27:23Z
-
The expiry notification system is separate from the AutoSSL system so the confusion is understandable. This system is responsible for sending expiry notifications for all certificate types. The tweak setting disables the expiry notifications system (SSL::CertificateExpiring and AutoSSL::CertificateExpiring - except for related DCV problems).I'm confused about that setting, because I did disable the notifications and they were still sent. I had to run the script quoted above to disable them.
So what does it disable exactly? I'm on 68.0.12.
whmapi1 set_tweaksetting key=notify_expiring_certificates value=0
whmapi1 set_autossl_metadata metadata_json='{"clobber_externally_signed":0,"notify_autossl_expiry_coverage":0,"notify_autossl_renewal_coverage":0,"notify_autossl_renewal":0}'
whmapi1 set_autossl_metadata metadata_json='{"clobber_externally_signed":1,"notify_autossl_expiry_coverage":0,"notify_autossl_renewal_coverage":0,"notify_autossl_renewal":0}'
Right?How did this "feature" reach Release? incomprehensible.
If you're running EDGE or CURRENT you might expect some issues.
I'm not arguing with you. When you go to your WebHost Manager to select your tier, you'll note the links to the right of each one.
Click them to be taken to the cPanel glossary page where I got the quotes above.
View attachment 49163
I hope this helps!
Right?I think a distinction needs to be made between the AutoSSL notifications and notifications for certificates the end user may have installed themselves from third parties.
With AutoSSL, sending notifications to the end user is a waste of time, since they can't do anything to resolve any of those problems. Expiry notifications on these certs are also pointless, considering the fact that they auto renew.
I think it's pretty reasonable to assume that AutoSSL notifications should go to the admin contact only.
The question I would have [for cPanel, not for you] is whether disabling the notifications in this area will stop the notifications to users or if it will stop notifications to admins or both?