Website not available anymore

Hi,

I had difficulties with the SSL certificate on cyberpanel since a week. I got it working only for a couple of hours. The Version I use is Cyberpanel 2.1. I tried to update as it shows there is Version 2.3 available but its not showing me this version when on the update section in the cloud. My website is down on the downdetector. Before it was not safe but I could access it. I tried to add the SSL certificate for the host and website but it says its created but when I go to the website it does not work.

Do you have any recommendations either how to update to 2.3 or add a SSL certificate.

Thanks in advance

Welcome @Andreas1 Happy you are here

Check if you have leftover certificates and chains for hostname e.g. if your hostname is mydomain.net using ssh terminal you will see them here ls /etc/letsencrypt/live/

If the folder mydomain.net exists:

You need to remove private keys and certificates at the Virtual Host Level

Go to OLS WebAdmin Console of your server i.e https://SERVER_URL:7080 use admin and password you chose for CyberPanel admin panel


Then you delete all private keys and certificates for respective website and hostname from server:

$ rm -f /etc/letsencrypt/live/mydomain.net/privkey.pem && rm -f /etc/letsencrypt/live/mydomain.net/fullchain.pem

$ rm -f /etc/letsencrypt/live/mail.mydomain.net/privkey.pem && rm -f /etc/letsencrypt/live/mail.mydomain.net/fullchain.pem

$ rm -f /etc/letsencrypt/live/ssl.mydomain.net/privkey.pem && rm -f /etc/letsencrypt/live/ssl.mydomain.net/fullchain.pem

Then resissue hostname SSL the CyberPanel way:

  1. Go to https://server.mydomain.net:8090/manageSSL/sslForHostName
  2. Choose mydomain.net
  3. Click on Issue SSL

If its not hostname domain

  1. Go to https://server.mydomain.net:8090/manageSSL/manageSSL
  2. Choose mydomain.net
  3. Click on Issue SSL
$ sudo su - -c "sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/cyberpanel_upgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/cyberpanel_upgrade.sh)"
## if successful
$ sudo reboot
## if fails
$ nano /var/log/upgradeLogs.txt