Wildcard Letsencrypt certificates and Multiple Domains
hostname of my linode VPS is xxx.domain1.com. I generated wildcard certificate using the below command:
certbot certonly \
--dns-linode \
--dns-linode-propagation-seconds 1000 \
-d *.domain1.com -d domain1.com
This works without any problem.
I have another domain hosted at the same server, domain2.com. I issued the same above command for domain2 and created wildcard certificate without any error. But, this certificate for domain2.com doesn't work properly.
SSLlabs check says "Certificate name mismatch. Try these other domain names (extracted from the certificates): xxx.domain1.com"
What is the proper way of creating wildcard certificates for multiple domains on the same server?