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

how to install letsencrypts ssl for the vestacp admin panel

General questions about VestaCP
Post Reply
  • Print view
Advanced search
21 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: how to install letsencrypts ssl for the vestacp admin panel
  • Quote

Post by ScIT » Wed Nov 30, 2016 7:23 pm

Just want to share "my solution" for Let's Encrypt on VestaCP: viewtopic.php?f=19&t=13057

Works for me on all servers in my encroiment.
Top

Loc_rabbirt
Posts: 25
Joined: Fri Nov 18, 2016 3:36 pm

Os: CentOS 6x
Web: apache + nginx
Re: how to install letsencrypts ssl for the vestacp admin panel
  • Quote

Post by Loc_rabbirt » Thu Dec 01, 2016 7:15 am

phez wrote:Guys,

I can confirm the following with 9.8.17 if you would like the following SSL encrypted sites.

If you would like your primary VestaCP website e.g. https://myserver.com:8083 SSL'ed then follow @dpeca method above. NOTE: This method does not automatically give you https://www.myserver.com:8083. You have to specify it in the command e.g.

Code: Select all

./letsencrypt-auto certonly --renew-by-default --webroot -w /home/admin/web/myserver.com/public_html -d myserver.com,www.myserver.com
Once completed, create CRON job to automatically renew https://myserver.com:8083

Now you if you want https://www.myserver.com & https://myserver.com you can go to the GUI and enable.
To do that.
1. Go to https://myserver.com:8083
2. Click "Web"
3. Move mouse to myserver.com and click "edit"
4. Check box "SSL Support" and now check box "Lets Encrypt Support"
5. Move down to bottom of page and click "Save".

This may take 5-30 seconds to save while it creates the Lets Encrypt certificates. You should receive a "Changes have been saved" message if OK.

Open Browser and ensure you clear all content / cookies / etc. and check the above
This mean if I want add ssl to myserver:8083, I will need add it from let's encrypt cli first, then go to vesta dashboard and add it again by using ssl gui from vestacp? Little confused for me.

In my case, I'm trying using ssl to cert for myserver from vestacp gui but the myserver:8083 don't have ssl.
Top

nitish
Posts: 6
Joined: Wed Nov 30, 2016 3:29 pm

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: how to install letsencrypts ssl for the vestacp admin panel
  • Quote

Post by nitish » Thu Dec 01, 2016 2:35 pm

In the latest release of 17 of 0.9.8, you can use Vesta web interface to generate a SSL and assign the certificate to panel, exim. Here's how:

1) If the hostname is sever1.example.com, add a web domain for it in vesta interface.
2) Click edit and checkmark 'SSL Support' and 'Lets Encrypt Support'. It will generate Cert, Key and CA cert. Copy it temporarily to a text file.
3) Now go to /list/server/ and click Configure. Under Vesta SSL paste the cert and key. In 'SSL Certificate' first copy the cert and below that the ca cert and in 'SSL Key' paste the key.
4) That's it, now SSL will be enabled for panel as well as exim which has been configured to use vesta SSL.
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: how to install letsencrypts ssl for the vestacp admin panel
  • Quote

Post by ScIT » Thu Dec 01, 2016 2:38 pm

nitish wrote:In the latest release of 17 of 0.9.8, you can use Vesta web interface to generate a SSL and assign the certificate to panel, exim. Here's how:

1) If the hostname is sever1.example.com, add a web domain for it in vesta interface.
2) Click edit and checkmark 'SSL Support' and 'Lets Encrypt Support'. It will generate Cert, Key and CA cert. Copy it temporarily to a text file.
3) Now go to /list/server/ and click Configure. Under Vesta SSL paste the cert and key. In 'SSL Certificate' first copy the cert and below that the ca cert and in 'SSL Key' paste the key.
4) That's it, now SSL will be enabled for panel as well as exim which has been configured to use vesta SSL.
That will only work for the first 3 months, because LE Certs are only valid for this time, after that they have to be refreshed. Because of that i wrote this small script: viewtopic.php?f=19&t=13057
Top

Mr.Erbutw
Posts: 1040
Joined: Tue Apr 29, 2014 10:05 pm

Os: CentOS 6x
Web: apache + nginx
Re: how to install letsencrypts ssl for the vestacp admin panel
  • Quote

Post by Mr.Erbutw » Thu Dec 01, 2016 3:15 pm

ScIT wrote: That will only work for the first 3 months, because LE Certs are only valid for this time, after that they have to be refreshed. Because of that i wrote this small script: viewtopic.php?f=19&t=13057
Here it is worthy of attention ! THANK !
Top

billmedina
Posts: 5
Joined: Tue Jan 31, 2017 10:29 pm

Re: how to install letsencrypts ssl for the vestacp admin panel
  • Quote

Post by billmedina » Tue Jan 31, 2017 10:33 pm

ln - s /etc/letsencrypt/live/[mydomain.com]/cert.pem /usr/local/vesta/ssl/certificate.crt
ln -s /etc/letsencrypt/live/[mydomain.com]/privkey.pem /usr/local/vesta/ssl/certificate.key
service vesta restart
Top

2kreative
Posts: 5
Joined: Sun May 25, 2014 3:04 pm

Re: how to install letsencrypts ssl for the vestacp admin panel
  • Quote

Post by 2kreative » Sun Feb 05, 2017 9:16 pm

billmedina wrote:ln - s /etc/letsencrypt/live/[mydomain.com]/cert.pem /usr/local/vesta/ssl/certificate.crt
ln -s /etc/letsencrypt/live/[mydomain.com]/privkey.pem /usr/local/vesta/ssl/certificate.key
service vesta restart
Thanks for the tip billmedina, I sim linked from
/home/[user]/conf/web/ssl.[mydomain.com].crt
/home/[user]/conf/web/ssl.[mydomain.com].pem

For Vesta admin on CentOS 7.2
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: how to install letsencrypts ssl for the vestacp admin panel
  • Quote

Post by ScIT » Sun Feb 05, 2017 9:28 pm

2kreative wrote:
billmedina wrote:ln - s /etc/letsencrypt/live/[mydomain.com]/cert.pem /usr/local/vesta/ssl/certificate.crt
ln -s /etc/letsencrypt/live/[mydomain.com]/privkey.pem /usr/local/vesta/ssl/certificate.key
service vesta restart
Thanks for the tip billmedina, I sim linked from
/home/[user]/conf/web/ssl.[mydomain.com].crt
/home/[user]/conf/web/ssl.[mydomain.com].pem

For Vesta admin on CentOS 7.2
This will NOT work! Billmedina crossposted this also in my way how to solve this problem (viewtopic.php?t=13057) and I left there a comment for him.

Your let's encrypt certificate will be renewed after some time. After every renew the certs are changed and you have to restart the vestacp service (and also exim4 + vestacp service if used). I would suggest you to use my solution (link above, works with integrated vestacp letsencrypt) or the solution from dpeca viewtopic.php?f=19&t=12617. I personally like my solution more then dpeca's, mine using the built in vestacp parts and compares just the files if the certs are changed and restart the needed services.

Choose what you want, but do not create only a symlink because a dumbass posted this commentless as "solution" in two threads.
Top

billmedina
Posts: 5
Joined: Tue Jan 31, 2017 10:29 pm

Re: how to install letsencrypts ssl for the vestacp admin panel
  • Quote

Post by billmedina » Tue Feb 07, 2017 3:37 am

Sorry you're so edgy. Maybe people can just restart vesta as shown in what I posted lol. So mad that I didn't need to copy/paste with a shell script. Pretty obvious that when the cert changes the web server for vesta needs to be restarted.
Top

billmedina
Posts: 5
Joined: Tue Jan 31, 2017 10:29 pm

Re: how to install letsencrypts ssl for the vestacp admin panel
  • Quote

Post by billmedina » Tue Feb 07, 2017 3:44 am

2kreative wrote:
billmedina wrote:ln - s /etc/letsencrypt/live/[mydomain.com]/cert.pem /usr/local/vesta/ssl/certificate.crt
ln -s /etc/letsencrypt/live/[mydomain.com]/privkey.pem /usr/local/vesta/ssl/certificate.key
service vesta restart
Thanks for the tip billmedina, I sim linked from
/home/[user]/conf/web/ssl.[mydomain.com].crt
/home/[user]/conf/web/ssl.[mydomain.com].pem

For Vesta admin on CentOS 7.2
Yes, I noticed that was the more direct symlink as well, good catch!
Top


Post Reply
  • Print view

21 posts
  • Previous
  • 1
  • 2
  • 3
  • Next

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