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 issue

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
sharkstate
Posts: 12
Joined: Mon Nov 24, 2014 11:42 pm

Letsencrypt issue
  • Quote

Post by sharkstate » Fri Feb 16, 2018 12:35 pm

Hi!

I just used:

Code: Select all

v-add-letsencrypt-domain user domain.com
To add letsencrypt SSL which worked like a charm. However it didnt give me support for www (error: The certificate is only valid for domain.com). Should I have added that in above? Can it be done afterwords?

Thanks!
Top

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

Os: Ubuntu 17x
Web: apache + nginx
Re: Letsencrypt issue
  • Quote

Post by ScIT » Fri Feb 16, 2018 8:45 pm

Run again the command and add the www domain as alias, for example

Code: Select all

v-add-letsencrypt-domain user domain.tld www.domain.tld
You can add multiple aliases, just separate them with , - for example:

Code: Select all

v-add-letsencrypt-domain user domain.tld www.domain.tld,otheralias.domain.tld
Top

sharkstate
Posts: 12
Joined: Mon Nov 24, 2014 11:42 pm

Re: Letsencrypt issue
  • Quote

Post by sharkstate » Fri Feb 16, 2018 8:46 pm

I tried afterwards doing:

Code: Select all

v-add-letsencrypt-domain user domain.com www

Eg to include the alias, but then get:

Code: Select all

Error: LetsEncrypt challenge request 400
Top

sharkstate
Posts: 12
Joined: Mon Nov 24, 2014 11:42 pm

Re: Letsencrypt issue
  • Quote

Post by sharkstate » Fri Feb 16, 2018 8:49 pm

Thanks.

When trying:

Code: Select all

v-add-letsencrypt-domain user domain.com www.domain.com
Per your suggestion, I get

Code: Select all

Error: domain www.domain.com doesn't exist
Top

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

Os: Ubuntu 17x
Web: apache + nginx
Re: Letsencrypt issue
  • Quote

Post by ScIT » Fri Feb 16, 2018 9:46 pm

sharkstate wrote: ↑
Fri Feb 16, 2018 8:49 pm
Thanks.

When trying:

Code: Select all

v-add-letsencrypt-domain user domain.com www.domain.com
Per your suggestion, I get

Code: Select all

Error: domain www.domain.com doesn't exist
what happens, when you enable let's encrypt in vestacp under web -> domain.tld -> edit -> tick ssl box, then tick let's encrypt support and press save. If it is already set (should be), remove the ssl box, click on save, and reactivate let's encrypt.

also check: is www.domain.com listed under your aliases in the same configuration part?
Top

sharkstate
Posts: 12
Joined: Mon Nov 24, 2014 11:42 pm

Re: Letsencrypt issue
  • Quote

Post by sharkstate » Sat Feb 17, 2018 8:45 am

Thanks.

I get either

Code: Select all

Error: LetsEncrypt challenge request 400
or

Code: Select all

www.domain.com domain doesnt exist
I think I should start fresh. How can I wipe letsencrypt from server and start fresh, do you know? Also, when redoing it, should I enter the alias as "www" or "www.domain.com" in vesta cp?
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Letsencrypt issue
  • Quote

Post by tjebbeke » Sun Feb 18, 2018 11:00 pm

sharkstate wrote: ↑
Sat Feb 17, 2018 8:45 am
Thanks.

I get either

Code: Select all

Error: LetsEncrypt challenge request 400
or

Code: Select all

www.domain.com domain doesnt exist
I think I should start fresh. How can I wipe letsencrypt from server and start fresh, do you know? Also, when redoing it, should I enter the alias as "www" or "www.domain.com" in vesta cp?
I think your www.domain.com alias is not added to the domain name in the control panel. Try to add the www.domain.com as alias to domain.com and try again.

Always add full domain name: www.domain.com
Top


Post Reply
  • Print view

7 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