We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons
Re: TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons
Thank for your guide.
I run on Ubuntu 18.x box, command will get error:
If anyone get this error, type:
Everything will work.
I run on Ubuntu 18.x box, command
Code: Select all
v-add-letsencrypt-domain 'admin' $HOSTNAME '' 'yes'
Code: Select all
Can't load /root/.rnd into RNG
139712324563392:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/root/.rnd
Code: Select all
sudo openssl rand -out /root/.rnd -hex 256
-
- Posts: 1
- Joined: Fri Jul 23, 2021 3:02 am
- Os: Ubuntu 13x
- Web: apache + nginx
Re: TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons
Thanks for your guide
I'm using Ubuntu 14.x. Do you think it will work fine in my version as well.?
I'm using Ubuntu 14.x. Do you think it will work fine in my version as well.?
-
- Posts: 24
- Joined: Thu Dec 30, 2021 10:04 am
- Os: CentOS 7x
- Web: apache
Re: TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons
As far as i know, it should work fine on your version as well.
-
- Posts: 7
- Joined: Wed Nov 22, 2017 8:43 am
Re: TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons
Thank you for all the info and help.dpeca wrote: ↑Fri Jul 27, 2018 10:52 amMany server owners don't know how to install SSL to all daemons, especially to Exim4 and dovecot.
Now there is a new way that is built-in Vesta
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, first, lets install Letsencrypt SSL to domain that is your hostname.
In SSH, as root, run:(change 'admin' if your hostname domain is not under 'admin' account)Code: Select all
v-add-letsencrypt-domain 'admin' $HOSTNAME '' 'yes'
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.
Now in SSH do the follwing:
(change 'admin' if your hostname domain is not under 'admin' account)Code: Select all
v-update-host-certificate admin $HOSTNAME
This will apply just installed SSL to Vesta, Exim and dovecot daemons.
And finally run:This will tell Vesta to update SSL to Vesta, Exim and dovecot daemons every time when SSL is renewed.Code: Select all
echo "UPDATE_HOSTNAME_SSL='yes'" >> /usr/local/vesta/conf/vesta.conf
This will happen automatically.
That's all.
LetsEncrypt SSL will be automatically renewed every 2 months and also automatically applied to dovecot, Exim and Vesta.
And this is completely built-in way, without additional scripts, Vesta itself do it.
I did all on my Ubuntu 16.04, with no problem, the only thing, is that still having problems to send emails.
running the email to test:
Code: Select all
Cert Hostname DOES NOT VERIFY (mydomain.com != sd-99999.dedibox.fr | DNS:sd-99999.dedibox.fr)
So email is encrypted but the host is not verified
mydomain.com -> This is the domain where I have my email accounts and the one I want to use to send emails. In this domain, I have a website, a simple one.
thank you!
Re: TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons
I hope everyone got SSL installed
Re: TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons
Thank you for your information.dpeca wrote: ↑Sat Aug 04, 2018 3:56 pmAll distributions that Vesta support.screighton wrote: ↑Sat Aug 04, 2018 3:36 pmWhat OS are these commands intended for? I can't get them to work on Ubuntu...
Before these commands run this:It should solve your problem.FM whatsappCode: Select all
source /etc/profile PATH=$PATH:/usr/local/vesta/bin && export PATH
That is also known ''issue'' if you try to run v-* commands immediately after Vesta installation.