Page 1 of 1
Letsencrypt - Problem setting up www. prefix
Posted: Thu Dec 29, 2016 7:33 pm
by danberlyoung
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!
Re: Letsencrypt - Problem setting up www. prefix
Posted: Mon Jan 02, 2017 10:10 pm
by ScIT
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
Re: Letsencrypt - Problem setting up www. prefix
Posted: Fri Jan 13, 2017 7:34 am
by delebash
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
Re: Letsencrypt - Problem setting up www. prefix
Posted: Fri Jan 13, 2017 7:39 am
by ScIT
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...
Re: Letsencrypt - Problem setting up www. prefix
Posted: Fri Jan 13, 2017 8:17 am
by delebash
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
Re: Letsencrypt - Problem setting up www. prefix
Posted: Fri Jan 13, 2017 8:19 am
by ScIT
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 ;)