we have a dedicated Server with Debian 8.5 and Apache running.
When using Command:
certbot --apache -w /var/www/domain1/ -d domain1.com
https works fine for domain1
When repeating that for domain2:
certbot --apache -w /var/www/domain2/ -d domain2.com
https for domain1 will not work anymore (Browser says certificate does not match domain). And https for domain2 works now.
Obviously certbot has overwritten the first certificate instead of creating a second one for domain2.
So how to manage to get two different certificates for domain1 and domain2 in this scenario?