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

letsencrypt https only works after extra tweaks

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
Peter92
Posts: 9
Joined: Thu Jan 18, 2018 9:31 am

Os: Ubuntu 15x
Web: apache
letsencrypt https only works after extra tweaks
  • Quote

Post by Peter92 » Thu Jan 18, 2018 9:48 am

I'm completely new to Linux but set up a VPS with the help of a friend who is considerably better than I am at this sort of stuff. Anyway, we had a lot of trouble with getting letsencrypt working properly, and he eventually figured how to do it. I was playing around a bit and managed to refine the process as much as I could, but I'm wondering if this is intentional on the part of Vesta or if something is being done wrong?

1. On Vesta CP log into user and create a new website called site.com
2. Either tick the letsencrypt support checkbox (and wait 5 min), or run the code after creation:

Code: Select all

letsencrypt-vesta user site.com
3. Run letsencrypt-auto, select the new website, choose reinstall certificate, and https redirection (this creates the -le-ssl.conf file, which https doesn't seem to work without)

Code: Select all

/usr/local/certbot/letsencrypt-auto
4. Add the newly created file into vesta.conf

Code: Select all

nano /etc/apache2/conf.d/vesta.conf
 Include /home/user/conf/web/site.com.apache2-le-ssl.conf
5. Restart apache

Anything less than this doesn't work with https, but it's a pain to do for every single created new website. Is there a way to automate or prevent it from being required?


Oh also just as a heads up, I use lastpass so usually pick long passwords, this forum complained that a 100 character password didn't match and 64 character password was too short.
Top

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

Os: Ubuntu 17x
Web: apache + nginx
Re: letsencrypt https only works after extra tweaks
  • Quote

Post by ScIT » Thu Jan 18, 2018 11:13 am

Peter92 wrote:

Code: Select all

letsencrypt-vesta user site.com
letsencrypt-vesta is not supported by vesta, please use the (since a long time) integrated way: v-add-letsencrypt-domain or tick let's encrypt checkbox in web backend.
Top

Peter92
Posts: 9
Joined: Thu Jan 18, 2018 9:31 am

Os: Ubuntu 15x
Web: apache
Re: letsencrypt https only works after extra tweaks
  • Quote

Post by Peter92 » Thu Jan 18, 2018 12:32 pm

ScIT wrote:letsencrypt-vesta is not supported by vesta, please use the (since a long time) integrated way: v-add-letsencrypt-domain or tick let's encrypt checkbox in web backend.
Thanks, although I previously tried the checkbox and found it had the same issue in that it wouldn't fully activate it without the extra tweaks, if I load the site at that point my anti virus points out the cert is invalid. I also just tried v-add-letsencrypt-domain but it's complaining at an invalid response on whichever website I use it on.
Top

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

Os: Ubuntu 17x
Web: apache + nginx
Re: letsencrypt https only works after extra tweaks
  • Quote

Post by ScIT » Thu Jan 18, 2018 12:39 pm

pleace share more informations, if you enter v-add-lets... manually, what happens? Any output?
Top

Peter92
Posts: 9
Joined: Thu Jan 18, 2018 9:31 am

Os: Ubuntu 15x
Web: apache
Re: letsencrypt https only works after extra tweaks
  • Quote

Post by Peter92 » Thu Jan 18, 2018 1:04 pm

All I get is this:

Code: Select all

root@site:~# v-add-letsencrypt-domain user site.com
(wait a few seconds)
Error: Invalid response from http://site.com/.well-known/acme-challenge/XwXfbjCqLzM3R2VJ_Z5j9vxbXaYx6oFHx7lJoje9y0w: \
I assume similar is happening with the letsencrypt checkbox. It's weird though as letsencrypt-vesta works, so it's probably not the DNS causing issues or anything.
Top

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

Os: Ubuntu 17x
Web: apache + nginx
Re: letsencrypt https only works after extra tweaks
  • Quote

Post by ScIT » Thu Jan 18, 2018 1:05 pm

Peter92 wrote:All I get is this:

Code: Select all

root@site:~# v-add-letsencrypt-domain user site.com
(wait a few seconds)
Error: Invalid response from http://site.com/.well-known/acme-challenge/XwXfbjCqLzM3R2VJ_Z5j9vxbXaYx6oFHx7lJoje9y0w: \
I assume similar is happening with the letsencrypt checkbox. It's weird though as letsencrypt-vesta works, so it's probably not the DNS causing issues or anything.
please send me a pn with your server details, will have a look if you want.
Top

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

Os: Ubuntu 17x
Web: apache + nginx
Re: letsencrypt https only works after extra tweaks
  • Quote

Post by ScIT » Thu Jan 18, 2018 6:46 pm

Had a short check on the server: installation is apache2 only, we only use apache2+nginx on our side, there i also noticed that let's encrypt with disabled nginx template does not work. Suggested to switch to apache2+nginx instead of apache2 only.
Top

Peter92
Posts: 9
Joined: Thu Jan 18, 2018 9:31 am

Os: Ubuntu 15x
Web: apache
Re: letsencrypt https only works after extra tweaks
  • Quote

Post by Peter92 » Fri Jan 19, 2018 1:43 am

Just got it up and running and it seems to be fine without any extra configuration needed (including https redirection), thanks :)

For the record, v-add-letsencrypt-domain doesn't work, but doing from the CP seems fine.
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

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