SuffolkLITLab/EfileProxyServer

Automate Let's Encrypt Runs

Opened this issue · 0 comments

Though #80 is completed, we still need to run the process manually, about every 3 months. I can handle that personally, but for the future we should implement the following:

  • using the quartz scheduler library, set the ACME renewal to run each night
    • in that function that runs each night, it should ready the current certificate from JSK_OUT_FILE_PATH, and check if the certificate is 2 week away from expiring. If not, don't do anything
    • if so, it should run the ACME renewal as normal
  • Figure out a way to restart the server from inside the scheduler. Not sure if we can pass an object reference to quartz yet, might be able to. https://www.quartz-scheduler.org/documentation/quartz-2.3.0/ If we can't, seems like we'll have to wake up the server every now and then in main and see if some file (RESTART) is present and if so, restart and delete the file.