Skip to content

Instantly share code, notes, and snippets.

@ai2ik
Created December 28, 2018 18:22
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ai2ik/57f36a7b6d10e6e37633d9f814e618d6 to your computer and use it in GitHub Desktop.
Save ai2ik/57f36a7b6d10e6e37633d9f814e618d6 to your computer and use it in GitHub Desktop.
How To Use Let’s Encrypt On VestaCP Login Panel (Port 8083)
1. This is assuming you know how to login to your admin panel + creating a Lets Encrypt cert for servers hostname.
2. SSH into your server and enter these two commands to rename/backup the old files :
mv /usr/local/vesta/ssl/certificate.crt /usr/local/vesta/ssl/unusable.crt
mv /usr/local/vesta/ssl/certificate.key /usr/local/vesta/ssl/unusable.key
3. Create symlinks to point to the new ones (Replace admin with your admin username and server.domain.com with your server’s hostname (FQDN).
ln -s /home/admin/conf/web/ssl.server.domain.com.crt /usr/local/vesta/ssl/certificate.crt
ln -s /home/admin/conf/web/ssl.server.domain.com.key /usr/local/vesta/ssl/certificate.key
4. Restart VestaCP
service vesta restart
Broken Permissions Solution
To fix broken permissions, enter the following commands.
Replace server.domain.com with your admin panel’s URL:
chgrp mail ssl.server.domain.com.key
chmod 660 ssl.server.domain.com.key
chgrp mail ssl.server.domain.com.crt
chmod 660 ssl.server.domain.com.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment