Hello, imagine this scenario:
domain.com *.domain.com (wildcard)
The configuration above works, there are SSL for the main site and all of the subdomains wildcard.
- Now imagine that on test.domain.com I created a website.
- Than I go and buy test.com and I want it to show the website at test.domain.com. To achieve that I go to the DNS of test.com and have the following lines changed:
test.com. 300 IN A 100.100.100.100 # ip adress of domain.com
www.test.com. 300 IN CNAME test.domain.com
How do I SSL test.com?
Edit: So for the _acme-challenge.test.com challenges I now need to add them to the domain.com DNS since now test.com points to the domain.com’s IP. So the remaining question is: how to add the generated certificates to server (apache2) without restart etc.
For the Control Panel on the VPS I use VestaCP which supports Let’s Encrypt SSL but not the wildcards (?yet).