this a question for bash gurus. I want to create a certificate using the
webroot plugin. Basically, what I’d like to do is
certbot certonly --webroot -w /var/www/ -d domain1 -d domain2 -d domain3
However, I don’t want to type in every single domain. I already have a file which contains a list of all the domains (approx. 50 domains, one domain per line):
domain1 domain2 domain3 ...
I’m looking for a bash command that reads the list of domains from the file and passes them to certbot so that I don’t have to manually type or copy&paste them one by one.
Thanks in advance,