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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hook for AutoSSL Completion

Discussion in 'cPanel Developers' started by WiddleWabbit, Oct 12, 2017.

Tags:
  1. WiddleWabbit

    WiddleWabbit Registered

    Joined:
    Oct 12, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Hi,

    Basically I'm running an nginx SSL termination setup and have written a small script to update the linked certificate and key for each virtual server. However the best I can come up with at the moment is to have cron run the script a few minutes after the autossl check. This bothers me because it leaves the potential for SSL to stop working for several minutes when the certificate changes.

    I'm struggling to work out the best way of having the script run immediately following an AutoSSL certificate installation, as to the best of my knowledge this is the best way of tackling the issue. I thought a hook would work but can't find anything to hook?

    The only function I could find that is related was the get_autossl_check_schedule.

    I'd really appreciate some advice on the issue?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    WiddleWabbit likes this.
  3. WiddleWabbit

    WiddleWabbit Registered

    Joined:
    Oct 12, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page