So, I have OpenLightSpeed server with CyberPanel installed. My issue is that once I issue the SSL with a standard CyberPanel tool, it works for 90 days only, regular Lets Encrypt cert. There is a CRON job add possibility in the CP, but I`m not sure it will work properly to auto-renew. Esspecialy the restart part. Here it is:
Auto-renew your SSL cert before it expires (every ~60-80 days)
Replace cert files CyberPanel uses
Restart OpenLiteSpeed after renewal so new cert is loaded
Step 1: Fix your renewal command
Your command has a small issue — the -w path and the double dashes --force look suspicious (copy-paste issue maybe). Also, the restart should happen only if renewal is successful.