User Tools

Site Tools


Enable LetsEncrypt for hostname

Pre-required step: your server hostname must be full host address that is already pointing to IP of your server. Check /etc/hostname to see what is your hostname.

If it's not real host address, change it to some domain that you are hosting, by typing in SSH:


Install letsencrypt for hostname domain (Avoid this step if it is already installed!)

v-add-letsencrypt-domain 'admin' $HOSTNAME '' 'yes'

To apply letsencrypt cert for hostname run this command:

v-update-host-certificate admin $HOSTNAME

Enable auto-updates for cert:

echo "UPDATE_HOSTNAME_SSL='yes'" >> /usr/local/vesta/conf/vesta.conf

Restart vesta panel:

service vesta restart

BELOW OLD WAY. Don't use it!

Login to vesta, create letsencrypt for hostname domain.

Then move files:

mv /usr/local/vesta/ssl/certificate.crt /usr/local/vesta/ssl/unusablecer.crt
mv /usr/local/vesta/ssl/certificate.key /usr/local/vesta/ssl/unusablecer.key

and create symlinks:

ln -s /home/admin/conf/web/ /usr/local/vesta/ssl/certificate.crt
ln -s /home/admin/conf/web/ /usr/local/vesta/ssl/certificate.key

At the end restart vesta:

service vesta restart
vesta/enable-letsencrypt-for-hostname.txt · Last modified: 2019/04/25 19:26 by dreiggy

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki