I had one sub domain and i created a lets encrypt certificate for this subdomain. That certificate works fine.
i created the certificate with this command:
sudo certbot --apache -d cloud.wolkee.de
Now i created a second sub domain on the server and created a second certificate with
sudo certbot --apache -d book.wolkee.de
Now the certificate of cloud.wolkee.de is not trusted anymore because it has the book.wolkee.de has common name and SAN. What did i wrong? is it not possible to create two lets encrypt certificates for two sub domains on the same server?
Thanks for your help.
Greeting.
EDIT: I restored my snapshot and the cloud.wolkee.de certificate is working again. book.wolkee.de has no certificate at the moment. what should i consider if i create a certificate for this sub domain?
Each vhost can have its’ own unique certificate - but is limited to only one certificate (per type - unrelated to this problem).
If your only have one vhost, then you must chose one certificate (if so, I would get one with both names on it).
if you have multiple vhost files then ensure they listen on 443 where required and contain the proper cert for the matching servername.