I couldn’t decide on what would be the best title for this thread, so here are both, which sum up what I’m trying to achieve.
“How can I setup wordpress multisite with letsencrypt”
or
“Can letsencrypt be used with multiple domain names without having to have a separate .conf configuration file for each virtual host?”
When setting up wordpress multisite, sites in the network initially get a sub domain from which the user can work (clientsite.mynetwork.com).
I’m very excited to see wildcard support coming on Feb 27! This is really going to help our workflow when this is ready.
When a client is ready, they go into their DNS, switch the A record to our IP, and, inside their wordpress site, map their domain to their subdomain (myclientcompany.com -> clientsite.mynetwork.com. https://codex.wordpress.org/WordPress_Multisite_Domain_Mapping)
In the link above describing how to setup SSL encryption, wordpress instructs, “Install SSL for the primary domain and use SERVER NAME INDICATION (SNI) for all other domains. Every domain should have SSL installed to ensure encrypted admin login.”
Does letsencrypt support SNI, and could you please point me to a resource about setting it up if so?
If not, or if there is a better approach, how can we setup LE to work with a wordpress multisite network?
The ultimate goal here, if possible, is to not have to go into the server environment and manually setup a vhost file each time a new TLD is mapped. I was thinking about writing a script to automate the process, or a cron job, if LE requires a .conf file per domain name.
(Current server environment is LAMP, ubuntu 17.04 with Apache 2.4)