We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Letsencrypt - Problem setting up www. prefix
-
- Posts: 7
- Joined: Fri Dec 12, 2014 2:09 am
Letsencrypt - Problem setting up www. prefix
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!
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
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: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!
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
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
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
you have to enter aliases with comma seperatordelebash 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
Code: Select all
v-add-letsencrypt-domain user domain alias1,alias2,alias3...
Re: Letsencrypt - Problem setting up www. prefix
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
./vesta/bin/v-add-letsencrypt-domain user domain alias,alias,alias vs alias alias alias
Re: Letsencrypt - Problem setting up www. prefix
look a post over your post ;)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