Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta Web Interface
  • Search

Letsencrypt - Problem setting up www. prefix

Questions regarding the Web Interface
GUI
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
danberlyoung
Posts: 7
Joined: Fri Dec 12, 2014 2:09 am

Letsencrypt - Problem setting up www. prefix
  • Quote

Post by danberlyoung » Thu Dec 29, 2016 7:33 pm

I have successfully set up SSL for https://example.com (for example) with the new Letsencrypt feature in release 17.

I want it to work for https://www.example.com as well. I have that set up as an alias for that domain but when it hit it via HTTPS I get a domain mismatch error. How can I go about fixing this?

Thanks!
Top

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

Os: Ubuntu 17x
Web: apache + nginx
Re: Letsencrypt - Problem setting up www. prefix
  • Quote

Post by ScIT » Mon Jan 02, 2017 10:10 pm

danberlyoung wrote:I have successfully set up SSL for https://example.com (for example) with the new Letsencrypt feature in release 17.

I want it to work for https://www.example.com as well. I have that set up as an alias for that domain but when it hit it via HTTPS I get a domain mismatch error. How can I go about fixing this?

Thanks!
Do you have added Let's Encrypt with Webinterface or CommandLine (v-add-letsencrypt-domain)? If you used the cli, you've to add the alias like it is expected in readme:

Code: Select all

v-add-letsencrypt-domain user domain alias
v-add-letsencrypt-domain user example.com www.example.com
Top

delebash
Posts: 22
Joined: Mon Aug 24, 2015 5:28 pm

Re: Letsencrypt - Problem setting up www. prefix
  • Quote

Post by delebash » Fri Jan 13, 2017 7:34 am

I setup ssl via the control panel with no alias's. I have added some alias's, I now want to get certs for those alias's

I ran v-add-letsencrypt-domain user domain alias and it worked but it only takes the first alias and overwrites the previous

Example:
v-add-letsencrypt-domain user domain http://www.mydomain.com
ALIASES: domain.com http://www.mydomain.com

I want to add another alias mydomain.org
v-add-letsencrypt-domain user domain mydomain.org
ALIASES: domain.com mydomain.org

Alias http://www.mydomain.com get's replaced by mydomain.org

I have also tried multiples at one time and only the first one in the list gets a cert
v-add-letsencrypt-domain user domain mydomain.org mydomain.net mydomain.me
In the above only mydomain.org gets a cert and again replaces any previous alias
Top

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

Os: Ubuntu 17x
Web: apache + nginx
Re: Letsencrypt - Problem setting up www. prefix
  • Quote

Post by ScIT » Fri Jan 13, 2017 7:39 am

delebash wrote:I setup ssl via the control panel with no alias's. I have added some alias's, I now want to get certs for those alias's

I ran v-add-letsencrypt-domain user domain alias and it worked but it only takes the first alias and overwrites the previous

Example:
v-add-letsencrypt-domain user domain http://www.mydomain.com
ALIASES: domain.com http://www.mydomain.com

I want to add another alias mydomain.org
v-add-letsencrypt-domain user domain mydomain.org
ALIASES: domain.com mydomain.org

Alias http://www.mydomain.com get's replaced by mydomain.org

I have also tried multiples at one time and only the first one in the list gets a cert
v-add-letsencrypt-domain user domain mydomain.org mydomain.net mydomain.me
In the above only mydomain.org gets a cert and again replaces any previous alias
you have to enter aliases with comma seperator

Code: Select all

v-add-letsencrypt-domain user domain alias1,alias2,alias3...
Top

delebash
Posts: 22
Joined: Mon Aug 24, 2015 5:28 pm

Re: Letsencrypt - Problem setting up www. prefix
  • Quote

Post by delebash » Fri Jan 13, 2017 8:17 am

I think I got it working. The syntax uses a comma instead of a space for alias's.
./vesta/bin/v-add-letsencrypt-domain user domain alias,alias,alias vs alias alias alias
Top

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

Os: Ubuntu 17x
Web: apache + nginx
Re: Letsencrypt - Problem setting up www. prefix
  • Quote

Post by ScIT » Fri Jan 13, 2017 8:19 am

delebash wrote:I think I got it working. The syntax uses a comma instead of a space for alias's.
./vesta/bin/v-add-letsencrypt-domain user domain alias,alias,alias vs alias alias alias
look a post over your post ;)
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Interface”



  • 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