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 Web Server
  • Search

Let's Encrypt create/renew with force-https template

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
19 posts
  • Previous
  • 1
  • 2
sdayman
Posts: 9
Joined: Tue Apr 11, 2017 3:04 am

Re: Let's Encrypt create/renew with force-https template
  • Quote

Post by sdayman » Tue Apr 25, 2017 1:25 pm

I use the force http template, and it's been working on my Let's Encrypt sites.

However, doing a file search for "conf_letsencrypt" only turns up two files: My default domain, and one other domain. My 9 or so other sites don't have the conf_letsencrypt files.

What do I need to do to rebuild my templates so I get those conf_letsencrypt files?

As a side note, is it normal for my Let's Encrypt sites to no longer have the Let's Encrypt checkbox checked once the certificates are generated? The SSL box is still checked.
Top

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

Re: Let's Encrypt create/renew with force-https template
  • Quote

Post by skurudo » Tue Apr 25, 2017 1:35 pm

Update force-https templates.
Rebuild web for users who uses those templates.
And you can easyly update our certificate.

Code: Select all

*nginx.%domain_idn%.conf_letsencrypt;
This part for search and include files .conf_letsencrypt if there is some,
and if you don't have any or for one you have and don't have for other,
you, I hope, don't get any troubles.
Top

sdayman
Posts: 9
Joined: Tue Apr 11, 2017 3:04 am

Re: Let's Encrypt create/renew with force-https template
  • Quote

Post by sdayman » Wed Apr 26, 2017 1:15 pm

Thank you for the reply.

I updated the templates and rebuilt web for one user. That user still doesn't have a conf_letsencrypt file.

In the panel for that user's domain, SSL is checked, but Let's Encrypt is not. The SSL cert shows up in the boxes below.

If I check the Let's Encrypt box and click Save, I get an error: Error: /tmp/tmp.ChTEgIkrjn/MYDOMAIN.com.crt not found

If it matters, I have SSL Home set to public_html.

Running Ubuntu 16.04 with PHP7.0
Top

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

Re: Let's Encrypt create/renew with force-https template
  • Quote

Post by skurudo » Wed Apr 26, 2017 1:32 pm

sdayman wrote: I updated the templates and rebuilt web for one user. That user still doesn't have a conf_letsencrypt file.
In the panel for that user's domain, SSL is checked, but Let's Encrypt is not. The SSL cert shows up in the boxes below.
Please uncheck ssl checkbox -> save and add ssl support and let's encrypt.
Top

sdayman
Posts: 9
Joined: Tue Apr 11, 2017 3:04 am

Re: Let's Encrypt create/renew with force-https template
  • Quote

Post by sdayman » Fri Apr 28, 2017 12:45 am

skurudo wrote: Please uncheck ssl checkbox -> save and add ssl support and let's encrypt.
That did it. Thanks!
Top

Trentor
Posts: 84
Joined: Fri Apr 25, 2014 6:42 pm

Re: Let's Encrypt create/renew with force-https template
  • Quote

Post by Trentor » Fri Apr 28, 2017 11:05 am

skurudo wrote:
Trentor wrote:I downloaded the templates from "Documentation" and still be the old ones.
From here? https://vestacp.com/docs/#how-to-force-https
Nope, I disagree

There is now one more include for Let's encrypt:

Code: Select all

include %home%/%user%/conf/web/*nginx.%domain_idn%.conf_letsencrypt;
Yep, my fault.
Top

Trentor
Posts: 84
Joined: Fri Apr 25, 2014 6:42 pm

Re: Let's Encrypt create/renew with force-https template
  • Quote

Post by Trentor » Fri Apr 28, 2017 11:12 am

skurudo wrote:Update force-https templates.
Rebuild web for users who uses those templates.
And you can easyly update our certificate.
THANKS!!!!
Top

vesta_mtl
Posts: 70
Joined: Wed Dec 21, 2016 2:08 pm

Re: Let's Encrypt create/renew with force-https template
  • Quote

Post by vesta_mtl » Tue May 30, 2017 3:29 pm

skurudo wrote:Update force-https templates.
Rebuild web for users who uses those templates.
And you can easyly update our certificate.

Code: Select all

*nginx.%domain_idn%.conf_letsencrypt;
This part for search and include files .conf_letsencrypt if there is some,
and if you don't have any or for one you have and don't have for other,
you, I hope, don't get any troubles.
Can you please tell me what you mean by "Update force-https templates"? Thanks.
Top

Trentor
Posts: 84
Joined: Fri Apr 25, 2014 6:42 pm

Re: Let's Encrypt create/renew with force-https template
  • Quote

Post by Trentor » Wed May 31, 2017 11:58 am

vesta_mtl wrote:Can you please tell me what you mean by "Update force-https templates"? Thanks.

Code: Select all

cd /usr/local/vesta/data/templates/web
wget http://c.vestacp.com/0.9.8/rhel/force-https/nginx.tar.gz
tar -xzvf nginx.tar.gz
rm -f nginx.tar.gz 
Top


Post Reply
  • Print view

19 posts
  • Previous
  • 1
  • 2

Return to “Web Server”



  • 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