Hi all, I have a few questions specifically regarding the use of the “webroot” plugin under a Debian-based Linux distribution (Ubuntu).
I understand that letsencrypt issues SAN certificates valid for 90 days. This means that the certificate can be used for multiple (sub)domains, but must be renewed at least once every 90 days.
The intent: secure multiple subdomains served over multiple webroot paths (virtual hosts). e.g.
webroot path: /var/www/www.example.com
domains: www.example.com
, example.com
webroot path: var/www/admin.example.com
domains: admin.example.com
webroot path: var/www/something.example.com
domains: something.example.com
, something2.example.com
, something3.example.com
I presume we could do this in shell:
./letsencrypt-auto certonly --webroot -w /var/www/www.example.com/ -d www.example.com -d example.com -w /var/www/admin.example.com/ -d admin.example.com -w /var/www/something.example.com/ -d something.example.com -d something2.example.com -d something3.example.com
Questions:
-
If my understanding is correct, I believe only 1 certificate will be created. Is the resultant certificate stored in
/etc/letsencrypt/live/www.example.com
or/etc/letsencrypt/live/admin.example.com
or some other location? -
Let’s say authentication fails for one of the subdomains - say,
something3.example.com
. Will a certificate still be issued for the rest of the domains that pass authentication? -
The docs say that
/etc/letsencrypt/cli.ini
is searched for configuration by default. Does this meancli.ini
is always applied for every execution of./letsencrypt-auto
? If thecli.ini
specifies a different webroot path, does it overwrite the command line arguments? -
Is there a way to do the above using a config file? i.e. executing
./letsencrypt-auto --config /etc/letsencrypt/myconfig.ini
will create the necessary certificate(s) for all the above domains across multiple webroot paths. I have read through a ton of resources in the forum but cannot seem to find any examples of multiple webroot paths in a config file.
Thanks for reading.
Finally, a big thank you to letsencrypt for this awesome tool.