I have server on digitalocean with ubuntu 18.04 and apache.
I created (successfully) certs for my main domain, and some subdomains.
But i will create more subdomains, so I knew the option of wildcard certificate.
I tried with:
certbot certonly --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges dns -d *.mydomain.com
It works ok, but If I put the certificates in new virtualhost (with port 443 and 80 redirecting to it)
It said that it isn’t valid certificate.
What can I check or what I do wrong ?