To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
I have double checked that the DNS A Record Exists
I want to use the same License that I used for domain.com to be used for all the Subdomains. Please help with the Procedure & Commands I need to execute.
The second time you wrote --webroot-path=/var/www -d example.com -d www.example.com -d user.example.com.... it exists on a different server.....are you sure we need to use that web root?
Your command gave me this Error:-
/var/www/html does not exist or is not a directory
I just went through the process of generating a single Let’s Encrypt certificate for multiple subdomains and here is a solution that might help. It involves creating a dummy VirtualHost for each of your subdomains that exist (including those on different servers). I posted a short article in the link below explaining the leasons learned I gained when installing Let’s Encrypt digital certificates on my Apache web server which provides HTTP and HTTPS access to multiple subdomains. https://www.hueyise.com/index.php/letsencrypt
You probably need to create a VirtualHost for the HTTP access AND a VirtualHost for each subdomain accessible via HTTPS. IMPORTANT: Each VirtualHost definition must be specified in a single configuration file. The Let’s Encrypt certbot will not operate correctly if multiple VirtualHosts are defined within a single configuration file. I defined three (3) VirtualHosts in three (3) different configuration files below. The dummy.conf file serves no functional purpose within Apache (i.e., it will not cause an unnecessary 999 listening port), but it is absolutely necessary for digital certificates to be successfully generated by the Let’s Encrypt certbot.
Then on one server, you can run the following command to generate the certificate. Once the certificates are generated, you would then need to place the certificates onto the other server and make the appropriate updates to the configuration files.
The challenge with this solution is that it complicates the automatic renewal process. You may need to augment the renewal script with a function to copy the renewed certs over to the other subdomain servers if they are not implemented on the same host.