How to install SSL certificate to myVesta, Exim and dovecot daemons

Post Reply
User avatar
dpeca
Site Admin
Posts: 239
Joined: Fri Jun 19, 2020 9:59 am
How to install SSL certificate to myVesta, Exim and dovecot daemons

Post by dpeca »

If you pointed your server hostname to your server IP, SSL is already installed in myVesta, Exim and dovecot daemons.

This is tutorial if you didn't do that.

---------------------------------------------------------

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:
v-change-sys-hostname somedomain.com
and then
HOSTNAME='somedomain.com'



Now, lets install Letsencrypt SSL to domain that is your hostname.

In SSH, as root, run:

Code: Select all

v-add-letsencrypt-domain 'admin' $HOSTNAME '' 'yes'
(change 'admin' if your hostname domain is not under 'admin' account)
This step will install LetsEncrypt the same way you can install it via Vesta web panel (so avoid this step if you already installed LetsEncrypt to your domain).
Of course, you can install any other certificate, not only free LetsEncrypt... you can do it via Vesta web panel by editing that domain.


That's all, SSL will be automatically applied to dovecot, Exim and Vesta.

LetsEncrypt SSL will be automatically renewed every 2 months and also automatically applied to dovecot, Exim and myVesta.

Tags:


Post Reply