i searched and found pieces of the solution to this quest on this forum and on ispconfig forum but i think will be useful (also for other configuration) a complete panoramic for a configuration that i think could interest a lot of user: how to correctly configure and manage ssl/tls certificates for multiple domains all hosted on a single machine (Debian 8 Jessie) with a single IP?
Why this request? I used with success in past certbot on a machine based on Centos 6 for an ecommerce site. There is only one domain on which tls is needed for ecommerce. And i didn’t noticed this problem because the configuration needed is only 1.
Now on the machine with Debian 8 (Jessie) and Ispconfig 3.1.1 I have installed 12 domains, on 5 of these domains (and relative www. aliases) i need to configure TLS/SSL certificates.
I installed certbot, all without problem.
I started the configuration for one of the domain (i can send in PM all details to test it) and all seems to work.
On ISPCONFIG for the single domain there is a section called SSL (and i can select a checkbox called Let’s Encrypt so i thought there is a semi-automatic procedur) where i can put the keys and certificates but after doing this nothing changed (also after restarting apache and the server).
So i tried to get certificate for another domain (domain2.com). All seems to work but when i request by https the domain (domain2.com) tell me this error on firefox:
Certificate is valid only for these names: domain1.com www.domain1.com
Error code: SEC_ERROR_UNKNOWN_ISSUER
If i put an exception to this error i get again the Web Document Root of the server /var/www/html/index.html
I had an idea for a workaround (with cut and past of all guides) but really i cannot found a complete guide to configure multihost without headeache. A step by step also to do this manually on Debian (forget about ISPCONFIG, it’s not a problem if i cannot configure SSL/TLS using it).
How to setting SSL for a single domain on a server that host more domains and http and https send to the same pages on Debian 8.