Navigate to Apache Settings->SSL Cert Manager and look for the AutoSSL tab/section. Then enter the username, followed by the hostname/domain you want to encrypt with SSL. Click the Install SSL button, and you should see a message confirming that it was installed successfully.
To finalize the SSL certificate installation, you need to edit the /usr/local/cwpsrv/conf/cwpsrv.conf configuration file. You can edit the file directly in CWP by navigating to File management -> Advanced File Manager. Find the file, click on it, and hit the edit button. In the second server section, comment the existing SSL directives—ssl_certificate … and ssl_certificate_key …—and add the following:
server {
...
...
ssl_certificate /etc/pki/tls/certs/DOMAIN.TLD.cert;
ssl_certificate_key /etc/pki/tls/private/DOMAIN.TLD.key;
...
...
}
Click the Save file button and close the CWP File Manager. Reboot the server by navigating to CWP Settings -> Reboot Server. Wait for few minutes, and you will be able to connect to CWP via
https://DOMAIN.TLD:2087 OR
https://DOMAIN.TLD:2031. You can check the Let’s Encrypt certificate information by clicking the green icon from the address bar.