Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons

General questions about VestaCP
Post Reply
  • Print view
Advanced search
36 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
saosangmo
Posts: 20
Joined: Sun Sep 21, 2014 2:27 pm
Contact:
Contact saosangmo
Website Google+

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons
  • Quote

Post by saosangmo » Tue Jun 22, 2021 4:35 pm

Thank for your guide.
I run on Ubuntu 18.x box, command

Code: Select all

v-add-letsencrypt-domain 'admin' $HOSTNAME '' 'yes'
will get error:

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
If anyone get this error, type:

Code: Select all

sudo openssl rand -out /root/.rnd -hex 256
Everything will work.
Top

thecassiecorner
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
  • Quote

Post by thecassiecorner » Fri Jul 23, 2021 3:09 am

Thanks for your guide

I'm using Ubuntu 14.x. Do you think it will work fine in my version as well.?
Top

clementishutin
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
  • Quote

Post by clementishutin » Wed Jan 19, 2022 6:12 am

As far as i know, it should work fine on your version as well.
Top

bannedillo
Posts: 7
Joined: Wed Nov 22, 2017 8:43 am

Re: TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons
  • Quote

Post by bannedillo » Wed Sep 27, 2023 2:08 pm

dpeca wrote: ↑
Fri Jul 27, 2018 10:52 am
Many 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:

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.



Now in SSH do the follwing:

Code: Select all

v-update-host-certificate admin $HOSTNAME
(change 'admin' if your hostname domain is not under 'admin' account)
This will apply just installed SSL to Vesta, Exim and dovecot daemons.


And finally run:

Code: Select all

echo "UPDATE_HOSTNAME_SSL='yes'" >> /usr/local/vesta/conf/vesta.conf
This will tell Vesta to update SSL to Vesta, Exim and dovecot daemons every time when SSL is renewed.
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.
Thank you for all the info and help.

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
sd-99999.dedibox.fr -> This is the "domain" I have of the server by default, and how I enter to vesta panel, the one that was as "/etc/hostname", so I didn't change anything.

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!
Top

juliejohn
Posts: 3
Joined: Fri May 17, 2019 5:05 am
Contact:
Contact juliejohn
Website Twitter

Os: Debian 9x
Web: apache + nginx
Re: TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons
  • Quote

Post by juliejohn » Mon Oct 09, 2023 12:12 pm

I hope everyone got SSL installed
Top

rockjonn
Posts: 1
Joined: Mon Jul 03, 2023 2:07 pm
Contact:
Contact rockjonn
Website

Os: CentOS 7x
Web: nginx + php-fpm
Re: TUTORIAL: How to install SSL certificate to Vesta, Exim and dovecot daemons
  • Quote

Post by rockjonn » Fri Nov 24, 2023 7:37 am

dpeca wrote: ↑
Sat Aug 04, 2018 3:56 pm
screighton wrote: ↑
Sat Aug 04, 2018 3:36 pm
What OS are these commands intended for? I can't get them to work on Ubuntu...
All distributions that Vesta support.

Before these commands run this:

Code: Select all

source /etc/profile
PATH=$PATH:/usr/local/vesta/bin && export PATH
It should solve your problem.FM whatsapp

That is also known ''issue'' if you try to run v-* commands immediately after Vesta installation.
Thank you for your information.
Top


Post Reply
  • Print view

36 posts
  • Previous
  • 1
  • 2
  • 3
  • 4

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password