Autossl renew check cron time

vacancy

Well-Known Member
Sep 20, 2012
309
89
28
cPanel Access Level
Root Administrator
Hello all

What time does autossl control the upcoming certificates?

Since the nginx software I use does not have an ssl refresh cpanel hook, renewed certificates are not automatically activated. If I know the renewal time, I can make a fix to work with this clock.

Or where can we change this cron time.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Last edited:
  • Like
Reactions: vacancy

DennisMidjord

Well-Known Member
Sep 27, 2016
230
29
28
Denmark
cPanel Access Level
Root Administrator

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello Dennis,

Good catch. I've updated the previous post to reflect that information.
 

DennisMidjord

Well-Known Member
Sep 27, 2016
230
29
28
Denmark
cPanel Access Level
Root Administrator
Hi Michael

Great :) Would something happen if you changed how many times a day the cron job runs? I'm well aware that having it set to something low as every half hour could be problematic if you host a lot of domains, but maybe once every 2 hours?
I'm asking this because we mainly host Danish domains (dk TLD), and DK-Hostmaster (responsible for every danish domain) requires that the domain is active on the name servers (added as an addon domain) before you can redelegate a domain name to those name servers. cPanel/WHM does the first SSL check once the addon domain is added, but at this point in time the domain doesn't point to the IP and the SSL certificate can't be installed, thus the client has to wait until midnight.

The client doesn't have a 'Run AutoSSL check' feauture, right?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello,

Updating the cron job to run more frequently shouldn't lead to any problems based on the information you provided, however note the information on the following document regarding existing polling frequency beyond the cron job referenced in this thread:

Manage AutoSSL - Version 64 Documentation - cPanel Documentation

The client doesn't have a 'Run AutoSSL check' feauture, right?
That's correct, but there is a feature request you can vote for if you'd like to see that implemented:

AutoSSL cPanel interface for end user control

Thank you.
 

DennisMidjord

Well-Known Member
Sep 27, 2016
230
29
28
Denmark
cPanel Access Level
Root Administrator
however note the information on the following document regarding existing polling frequency beyond the cron job referenced in this thread:
Would that mean that if a domain failed the first AutoSSL check (let's say the DNS records for the domain wasn't pointing to our webserver), it would try again every 5 minutes?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Would that mean that if a domain failed the first AutoSSL check (let's say the DNS records for the domain wasn't pointing to our webserver), it would try again every 5 minutes?
The AutoSSL check runs upon the creation of a new account and upon the addition of a new domain name to an existing account. Additionally, it runs once daily for all accounts as part of the following cron job:

Code:
# cat /etc/cron.d/cpanel_autossl
25   5   *   *   *   root   /usr/local/cpanel/bin/autossl_check --all
If the domain does not yet resolve to the cPanel server at the time of the initial AutoSSL check, then it isn't checked again until the next scheduled check via the above cron job. Additionally, users can manually run the AutoSSL check using the SSL TLS Status option in cPanel at anytime:

SSL TLS Status - Version 68 Documentation - cPanel Documentation

Thank you.