In case you are failing to renew your domain SSL using let’s encrypt in a cyberpanel environment. This might help you.
First, make sure, you have the certbot installed.
yum install epel-release -y yum install certbot -y
Once done, now, you can get a certificate using the following command:
certbot certonly --webroot -w /home/yourdomain.com/public_html/yourdomain.com/ -d yourdomain.com -d www.yourdomain.com
Make sure to replace ‘/home/yourdomain.com/public_html/yourdomain.com/’ with the path of your home directory and ‘yourdomain.com’ with the original domain. This will show something like the following once the retrieve is done
IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/yourdomain.com-0003/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/yourdomain.com-0003/privkey.pem Your cert will expire on 2022-03-12. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot renew"
The noticeable thing is the following:
/etc/letsencrypt/live/yourdomain.com-0003/
This ends with 003 because this is the 3rd time, it is getting a certificate from Let’s Encrypt for the same domain.
Now, first go to /etc/letsencrypt/live and change this folder to yourdomain.com, and then restart lsws like the following:
cd /etc/letsencrypt/live mv yourdomain.com yourdomain.com_old_1 mv yourdomain.com-003 yourdomain.com service lsws restart
Your SSL should be up and running now. Good luck.