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

Feature Request: Support Let's Encrypt

General questions about VestaCP
Locked
  • Print view
Advanced search
31 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next
TheRealRichii
Posts: 5
Joined: Sun Nov 22, 2015 10:28 pm

Re: Feature Request: Support Let's Encrypt

Post by TheRealRichii » Sun Nov 22, 2015 10:38 pm

skurudo wrote:
molen wrote:Let's Encrypt program needs to read conf file or VHost setting to know what site you need certificates.
But Vesta's way can't let the Let's Encrypt program to find the site, especially the site's DNS records are not in Vesta system.
Why? Let's Encrypt can't read path, or you can't choose where config file are?
molen wrote:So I think Vesta needs to adjust some setting to support Let's Encrypt.
I am a Let's Encrypt tester but can't get a certificates by its program. So sad. :(
When this software will be in production, not in limited beta, then some tests make sense.. now it's just for fun only.
It's a manual process at the moment, but totally doable. I've got a couple of sites up that are managed via Vesta, and now using certificates from the Let's Encrypt production CA. No, the "automatically detect my server and install the certificates" thing doesn't work with Vesta, but a few minutes on the command line sorts it all out.

There are actually a couple of ways forward:

1. The ACME client is based on plugins (Apache is the default, nginx is under development), so they could be forked to support the Vesta configuration.

2. The client could be integrated directly into Vesta (which would be awesome!).

Let me know if you'd like my quick and dirty notes I took while setting up my initial tests.
Top

danimalweb
Posts: 8
Joined: Mon Nov 09, 2015 2:09 am

Re: Feature Request: Support Let's Encrypt

Post by danimalweb » Mon Nov 23, 2015 2:50 am

Can you share how you installed the certificates? -- "few minutes on the command line"

I've just got my invite for the beta.

Thanks.
Top

TheRealRichii
Posts: 5
Joined: Sun Nov 22, 2015 10:28 pm

Re: Feature Request: Support Let's Encrypt

Post by TheRealRichii » Mon Nov 23, 2015 5:55 am

danimalweb wrote:Can you share how you installed the certificates? -- "few minutes on the command line"

I've just got my invite for the beta.

Thanks.
No problem, I'll clean up my notes and post them.
Top

TheRealRichii
Posts: 5
Joined: Sun Nov 22, 2015 10:28 pm

Re: Feature Request: Support Let's Encrypt

Post by TheRealRichii » Mon Nov 23, 2015 7:36 am

For anyone interested, I've put some (very!) quick docs here: https://docs.google.com/document/d/1y5t ... sp=sharing.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Feature Request: Support Let's Encrypt

Post by skurudo » Mon Nov 23, 2015 2:42 pm

TheRealRichii wrote:For anyone interested, I've put some (very!) quick docs here: https://docs.google.com/document/d/1y5t ... sp=sharing.
Nice docs! Thanks a lot.
Top

Jonas
Posts: 1
Joined: Wed Dec 16, 2015 11:35 am

Re: Feature Request: Support Let's Encrypt

Post by Jonas » Wed Dec 16, 2015 11:38 am

Anybody else got problems with exim after chaning the main vesta ssl?

Code: Select all

2015-12-16 12:17:37 TLS error on connection from *** [***] (SSL_CTX_use_certificate_chain_file file=/usr/local/vesta/ssl/certificate.crt): error:0200100D:system library:fopen:Permission denied
I tried to

Code: Select all

chown -h root:mail /usr/local/vesta/ssl/certificate.crt
&& set chmod to 644 but still the same error message! Any ideas?

Edit:

Code: Select all

[root@admin exim]# ls -la /usr/local/vesta/ssl/certificate.crt
lrwxrwxrwx 1 root mail 40 Dec 16 09:03 /usr/local/vesta/ssl/certificate.crt -> /etc/letsencrypt/live/***.com/cert.pem
Top

kodiak
Posts: 6
Joined: Wed Dec 30, 2015 6:14 am

Re: Feature Request: Support Let's Encrypt

Post by kodiak » Thu Dec 31, 2015 2:05 am

I've written an script that integrates the Let's Encrypt client with Vesta's command line tools to automate the request process for Vesta. You can clone it from GitHub at https://github.com/interbrite/letsencrypt-vesta. See the README file for installation instructions.

Once you've installed it, all you need to do is run

Code: Select all

letsencrypt-vesta USER DOMAIN
, where USER is a Vesta user account and DOMAIN is a domain hosted under that account. The script will look up the aliases associated with the domain and request a certificate for all of them, use webroot authentication to validate the domains, and then properly install the cert using the Vesta command line tools. The same command is used for new requests and renewals and it will work on any domain, whether or not SSL support has already been enabled on it.
Top

Neso
Posts: 5
Joined: Thu Mar 06, 2014 10:59 am

Re: Feature Request: Support Let's Encrypt

Post by Neso » Sat Jan 02, 2016 11:47 pm

kodiak wrote:I've written an script that integrates the Let's Encrypt client with Vesta's command line tools to automate the request process for Vesta. You can clone it from GitHub at https://github.com/interbrite/letsencrypt-vesta. See the README file for installation instructions.

Once you've installed it, all you need to do is run

Code: Select all

letsencrypt-vesta USER DOMAIN
, where USER is a Vesta user account and DOMAIN is a domain hosted under that account. The script will look up the aliases associated with the domain and request a certificate for all of them, use webroot authentication to validate the domains, and then properly install the cert using the Vesta command line tools. The same command is used for new requests and renewals and it will work on any domain, whether or not SSL support has already been enabled on it.
Very cool!
Does it also work with Apache+Nginx setup? Or Nginx+PHP-FPM?
Cheers!
Top

kodiak
Posts: 6
Joined: Wed Dec 30, 2015 6:14 am

Re: Feature Request: Support Let's Encrypt

Post by kodiak » Sun Jan 03, 2016 3:11 am

Neso wrote: Very cool!
Does it also work with Apache+Nginx setup? Or Nginx+PHP-FPM?
Cheers!
It should work with anything that Vesta supports. It uses Vesta's command line tools to do the cert installs, so as long as the Vesta tools stay in line with how you can configure things in the web panel, the script should always work. Provided you're using both servers, Vesta installs the cert in both Apache and Nginx.
Top

LouisUK
Posts: 11
Joined: Wed Nov 18, 2015 2:15 pm

Re: Feature Request: Support Let's Encrypt

Post by LouisUK » Thu Jan 07, 2016 9:11 am

TheRealRichii wrote:For anyone interested, I've put some (very!) quick docs here: https://docs.google.com/document/d/1y5t ... sp=sharing.
Thank you! Good guide - just to add you will need to swap out admin for any web accounts you made under a different user.
Top


Locked
  • Print view

31 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 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