Page 2 of 2

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

Posted: Tue Apr 25, 2017 1:25 pm
by sdayman
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.

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

Posted: Tue Apr 25, 2017 1:35 pm
by skurudo
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.

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

Posted: Wed Apr 26, 2017 1:15 pm
by sdayman
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

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

Posted: Wed Apr 26, 2017 1:32 pm
by skurudo
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.

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

Posted: Fri Apr 28, 2017 12:45 am
by sdayman
skurudo wrote: Please uncheck ssl checkbox -> save and add ssl support and let's encrypt.
That did it. Thanks!

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

Posted: Fri Apr 28, 2017 11:05 am
by Trentor
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.

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

Posted: Fri Apr 28, 2017 11:12 am
by Trentor
skurudo wrote:Update force-https templates.
Rebuild web for users who uses those templates.
And you can easyly update our certificate.
THANKS!!!!

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

Posted: Tue May 30, 2017 3:29 pm
by vesta_mtl
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.

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

Posted: Wed May 31, 2017 11:58 am
by Trentor
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