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

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
sdayman
Posts: 9
Joined: Tue Apr 11, 2017 3:04 am

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

Postby 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.

skurudo
VestaCP Team
Posts: 7791
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

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

Postby 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.
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

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

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

Postby 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

skurudo
VestaCP Team
Posts: 7791
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

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

Postby 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.
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

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

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

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

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

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

Postby 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.

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

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

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

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

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

Postby 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.

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

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

Postby 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


Return to “Web Server”



Who is online

Users browsing this forum: No registered users and 6 guests

cron