If you face any issues while installing an SSL certificate on your domain, CyberPanel generates a self-signed certificate instead. This certificate, however, isn’t acceptable to the majority of the browsers and is causing a red screen warning. Below you will find steps on how to fix this issue.
For all the steps, you need to access your VPS root via SSH. After each step, you will need to double-check the SSL certificate's status, to see if your latest action fixed it.
Upgrade CyberPanel to the latest version. It can be done by executing this SSH command:
sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)
Upgrade ACME SSL Client to the latest version. For this, run the following command:
wget -O - https://get.acme.sh | sh
Check for additional error logs:
You might find specific errors, by fixing which you'll be able to solve the SSL certificate's error.
Execute SSL installation with debug flag:
/root/.acme.sh/acme.sh --issue -d yourdomain.com -d www.yourdomain.com --cert-file /etc/letsencrypt/live/www.rmronsol.com/cert.pem --key-file /etc/letsencrypt/live/yourdomain.com/privkey.pem --fullchain-file /etc/letsencrypt/live/yourdomain.com/fullchain.pem -w /home/yourdomain.com/public_html --server letsencrypt --force --debug
If the steps above didn't help, make sure to check solutions in the official documentation: How to fix SSL issues in CyberPanel?