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.

  1. 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)
  2. Upgrade ACME SSL Client to the latest version. For this, run the following command:

    wget -O -  https://get.acme.sh | sh 
  3. Check for additional error logs:

    cat /home/cyberpanel/error-logs.txt

    You might find specific errors, by fixing which you'll be able to solve the SSL certificate's error.

  4. 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 


Did this answer your question?