Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Autossl renew check cron time

Discussion in 'Security' started by vacancy, Jun 13, 2017.

Tags:
  1. vacancy

    vacancy Well-Known Member

    Joined:
    Sep 20, 2012
    Messages:
    205
    Likes Received:
    25
    Trophy Points:
    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.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 cPanelMichael, Jun 13, 2017
    Last edited: Jun 29, 2017
    vacancy likes this.
  3. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    164
    Likes Received:
    13
    Trophy Points:
    18
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Wouldn't that only run once a day at 00:30?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Dennis,

    Good catch. I've updated the previous post to reflect that information.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    164
    Likes Received:
    13
    Trophy Points:
    18
    Location:
    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?
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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

    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    164
    Likes Received:
    13
    Trophy Points:
    18
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    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?
     
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice