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.
If you do this, please bear in mind that there is a Let’s Encrypt limit of 100 domains in a single cert, so if you someday acquire more and more domains, there is a limit to the applicability of this or any technique. But you could then split the list into two and just run two commands like @jmorahan’s to acquire two separate certificates.