First question: why are there two SSL renewal mechanisms? In root’s crontab, we see:
“/root/.acme.sh”/acme.sh runs at 12:07am to renew certs that are 60 days old.
/usr/local/CyberCP/plogical/renew.py runs at 2am to renew certs that expire in 15 days.
Second question: where are the hooks to restart OpenLiteSpeed after acme.sh renews a cert? I had a couple sites fail renewal on the first try but the certs were issued on subsequent attempts. However, OpenLiteSpeed is still serving the old certs, which will expire soon.
Each site has a .conf file e.g. /root/.acme.sh/mydomain.com/mydomain.com.conf. In all of them, the ReloadCmd is empty:
Le_ReloadCmd=’’
I believe the crontab could use a --reloadcmd parameter, but it does not.
I know I can run “lswsctrl restart” manually, but isn’t it supposed to happen automatically when one or more certs renew?
by default cyberpanel will not reload /restart litespeed/ other related apps during auto renew, it only reloads during initial SSL install from cyberpanel, seems they handling via pythonscript not via acme reloadcmd method
so you can do the following to issue an SSL this will auto renew SSL as well restart during after successful auto renew
Thanks for this info. I’ve been facing this issue for years with Cyberpanel. It’s of my many frustrations with CP, but I’ve come to accept it.
I notice when I use this command now, I get the following output: Warning: The unit file, source configuration file or drop-ins of openlitespeed.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Fo you have any idea what that’s telling me? Does it mean LS is not reloading? Certainly the SSL certificate being served is still the wrong one (it’s a self-signed cert, rather than the manually updated cert).