Hi today I noticed something interesting. I had a domain with an alias. I deleted the alias from our interface, but it stayed in the file: sites-available/xyz.net.vhost-le-ssl.conf It still had the ServerAlias command in there for the alias domain.
This file is not from ISPConfig. According to the file name, you manually ran certbot command on your system instead of using the SSL functions in ISPConfig and certbot duplicated and messed up your config. This website can not be managed by ISPConfig anymore until you undo what certbot changed and also delete this wrong config file which was created by certbot. Never use the certbot command manually on an ISPConfig system for any websites or services managed by ISPConfig; certbot destroys the config.
Ah ok many thanks! I really liked using the certbot and I didn't know it would corrupt the configuration..
Since you use iSPConfig now, getting a Let's Encrypt certificate is even easier. Just enable the Let's Encrypt checkbox of the website and press save button, that's all. Also, all recent ISPConfig systems use acme.sh internally and not certbot anymore, so better not install certbot at all not to cause conflicts.