Skip to main content

Autossl renew check cron time

Comments

7 comments

  • cPanelMichael
    Hello, The AutoSSL check runs once daily as part of the following cron job:
    # cat /etc/cron.d/cpanel_autossl 30 0 * * * root /usr/local/cpanel/bin/autossl_check --all
    If you are using engintron, I believe the issue you are facing is referenced at: SSL Requires Restart - No Cron " Issue #556 " engintron/engintron " GitHub Thank you.
    0
  • DennisMidjord
    Hello, The AutoSSL check runs every thirty minutes as part of the following cron job:
    # cat /etc/cron.d/cpanel_autossl 30 0 * * * root /usr/local/cpanel/bin/autossl_check --all
    If you are using engintron, I believe the issue you are facing is referenced at: SSL Requires Restart - No Cron " Issue #556 " engintron/engintron " GitHub Thank you.

    Wouldn't that only run once a day at 00:30?
    0
  • cPanelMichael
    Hello Dennis, Good catch. I've updated the previous post to reflect that information.
    0
  • DennisMidjord
    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?
    0
  • cPanelMichael
    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:
    0
  • DennisMidjord
    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?
    0
  • cPanelMichael
    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:
    # 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.
    0

Please sign in to leave a comment.