Page 1 of 1

How to fix LetsEncrypt SSL certificate (Admin Panel)

Posted: Thu Nov 16, 2017 9:57 pm
by patoonord
Solution
This solution consists of creating a symbolic link from the certificate origin location to the destination location. This is the best solution since VestaCP will automatically renew LetsEncrypt certificates – a symbolic link would ensure any updates are reflected in the VestaCP admin panel.

cd /usr/local/vesta/ssl
mv certificate.crt certificate.crt_old
mv certificate.key certificate.key_old
ln -s /home/admin/conf/web/ssl.DOMAIN.TLD.key /usr/local/vesta/ssl/certificate.key
ln -s /home/admin/conf/web/ssl.DOMAIN.TLD.crt /usr/local/vesta/ssl/certificate.crt
sudo service vesta restart

Be sure to change domain.tld with the domain your server is using with VestaCP

Re: How to fix LetsEncrypt SSL certificate (Admin Panel)

Posted: Fri Nov 17, 2017 9:37 am
by ScIT
not the best way to solve, you will get a permission error within exim4. Written a small script to solve this issue: viewtopic.php?f=19&t=13057