I have just created CyberPanel and start moving my websites from my old cPanel host (also Litespeed server). However, my domains keeps getting self-signed SSL certificates. I have tried troubleshooting using this guide, but that does not solve my problem:
https://community.cyberpanel.net/t/how-to-fix-ssl-issues-in-cyberpanel/90
When I visit my domain https://www.apha.dk I get a NET::ERR_CERT_AUTHORITY_INVALID error. In the browser I can see that the certificate was given by “Dis” and in CyberPanel it says “Apha.dk has self-signed SSL”. When I go to the folder /etc/letsencrypt/live/apha.dk I can see that there is a fullchain.pem and privkey.pem file with a code inside.
My CyberPanel logfile says the following:
[12.08.2022_07-31-52] [Errno 2] No such file or directory: '/etc/letsencrypt/live/apha.dk/fullchain.pem'
[12.08.2022_07-38-28] Status Code: 200 for: http://www.apha.dk/.well-known/acme-challenge/apha.dk
[12.08.2022_07-38-28] Status Code: 200 for: http://apha.dk/.well-known/acme-challenge/apha.dk
[12.08.2022_07-38-30] /root/.acme.sh/acme.sh --issue -d apha.dk -d www.apha.dk --cert-file /etc/letsencrypt/live/apha.dk/cert.pem --key-file /etc/letsencrypt/live/apha.dk/privkey.pem --fullchain-file /etc/letsencrypt/live/apha.dk/fullchain.pem -w /usr/local/lsws/Example/html -k ec-256 --force --server letsencrypt
[12.08.2022_07-38-33] Failed to obtain SSL for: apha.dk and: www.apha.dk
[12.08.2022_07-38-33] Trying to obtain SSL for: apha.dk
[12.08.2022_07-38-34] Failed to obtain SSL, issuing self-signed SSL for: apha.dk
[12.08.2022_07-38-35] Self signed SSL issued for apha.dk.
I have Cyberpanel 2.3 build 2 installed.
Any ideas how to make CyberPanel use the Lets Encrypt certificate instead?




