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.
Before you start
- 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.
Fix the SSL certificate error
-
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:
cat /home/cyberpanel/error-logs.txtYou 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 issue persists after going through these steps, check the official documentation for further options: How to fix SSL issues in CyberPanel.