I wrote a PHP script that creates new sites for my clients, with different domains for each site. That way, I can create a new site customized for my clients quickly. As an example, my domain is on an example.com site and clients direct their domains (for example www.domain1.com, www.domain2.com) with the DNS configuration:
Example 1:
Type A -> 18.228.80.90 (fictitious IP) and CNAME www.domain1.com.br -> example.com.br
Example 2:
Type A -> 18.228.80.90 (fictitious IP) and CNAME www.domain2.com.br -> example.com.br
Thus, when the domain name ‘domain1.com.br’ is typed, it is automatically directed to the server ‘example.com.br’, which will verify the domain typed and open the contents of the corresponding site, through a simple verification of the domain name by PHP.
How could I deploy the HTTPS from the Encrypt lets to multiple domains, so that I only use one server for all the sites? I am currently using Certbot, installed on UBUNTU 18.04, but from my searches and searching for more information, I have come to the conclusion that it will not be possible to use it to create new certificates, because it only manages 1 key (and each key has a limit of 100 certified domains), and I need to generate individual keys for each domain.
Thank you for your help! They all helped in some way Ndilieto, Jmorahan and JuergenAuer.
As I am newbie, I did not know how to get multiple keys to multiple domains that were targeted to my host. My solution was to configure multiple virtual hosts in apache.
I still use Certbot for certificate management but now I do not need to use the -d option anymore as Certbot manages Virtual Hosts