Page 1 of 1
SSL Certificates with multiple domains
Posted: Sat Feb 10, 2018 9:56 pm
by LouisIsMyDog
I have a general question of ssl certificates. I have several domains running on Vesta CP. Lets say I have 7 websites. My name website with domain abc.com is also my hostname. Now when I create a certificate I register the hostname abc.com. In turn this makes the certificate unusable for my other domains. What is the best way to attach an SSL certificate for each domain? What am I doing wrong?
-Thank you guys in advance
Re: SSL Certificates with multiple domains
Posted: Sun Feb 11, 2018 9:04 pm
by Mikorus
usualy all domains can be specified during ceritficate generation
Re: SSL Certificates with multiple domains
Posted: Mon Feb 12, 2018 10:13 am
by skurudo
Why not to use Let's Encrypt? One domain (2-nd or 3-rd level) = one certificate.
Re: SSL Certificates with multiple domains
Posted: Mon Feb 12, 2018 4:07 pm
by LouisIsMyDog
Hi skurudo, could you elaborate with "One domain (2-nd or 3-rd level) = one certificate".
The way I generate my certificate is as follows:
"./letsencrypt-auto certonly --renew-by-default --webroot -w /home/admin/web/[YOUR-HOSTNAME]/public_html -d [YOUR-HOSTNAME]"
How would I add more than 1 domain?
Re: SSL Certificates with multiple domains
Posted: Tue Feb 13, 2018 1:28 pm
by tjebbeke
LouisIsMyDog wrote: ↑Mon Feb 12, 2018 4:07 pm
Hi skurudo, could you elaborate with "One domain (2-nd or 3-rd level) = one certificate".
The way I generate my certificate is as follows:
"./letsencrypt-auto certonly --renew-by-default --webroot -w /home/admin/web/[YOUR-HOSTNAME]/public_html -d [YOUR-HOSTNAME]"
How would I add more than 1 domain?
You can add multiple domains with extra -d parameters. But why not using the let's encrypt integration in vesta cp itself?
Re: SSL Certificates with multiple domains
Posted: Tue Feb 13, 2018 2:03 pm
by LouisIsMyDog
Thanks tjebbeke, the -d parameter worked for me. My gui wasnt working.
Re: SSL Certificates with multiple domains
Posted: Wed Feb 14, 2018 6:25 am
by skurudo
LouisIsMyDog wrote: ↑Mon Feb 12, 2018 4:07 pm
Hi skurudo, could you elaborate with "One domain (2-nd or 3-rd level) = one certificate".
domain.com - 2 level
www.domain.com or a.domain.com - 3 level