Prerequisites
- Domain pointed to VPS IP
- Control panel accessible via HTTP
Step 1: Install Certbot
sudo apt install certbot -yStep 2: Obtain Certificate for Control Panel Domain
sudo certbot certonly --standalone -d panel.yourdomain.comStep 3: Locate Certificate Files
/etc/letsencrypt/live/panel.yourdomain.com/fullchain.pem
/etc/letsencrypt/live/panel.yourdomain.com/privkey.pemStep 4: Configure Control Panel to Use SSL
Follow your control panel's documentation to set the certificate paths.