Page 1 of 1

Letsencrypt issue

Posted: Fri Feb 16, 2018 12:35 pm
by sharkstate
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!

Re: Letsencrypt issue

Posted: Fri Feb 16, 2018 8:45 pm
by ScIT
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

Re: Letsencrypt issue

Posted: Fri Feb 16, 2018 8:46 pm
by sharkstate
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

Re: Letsencrypt issue

Posted: Fri Feb 16, 2018 8:49 pm
by sharkstate
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

Re: Letsencrypt issue

Posted: Fri Feb 16, 2018 9:46 pm
by ScIT
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?

Re: Letsencrypt issue

Posted: Sat Feb 17, 2018 8:45 am
by sharkstate
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?

Re: Letsencrypt issue

Posted: Sun Feb 18, 2018 11:00 pm
by tjebbeke
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