easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

Letsencrypt support for multisite (subdir) + Domain Mapping

Open QROkes opened this issue 10 years ago • 20 comments

Doing some testing I realize that is not easy to get multisite subdirectory working with letsencrypt. Would be nice to have this feature available.

QROkes avatar Jan 27 '16 08:01 QROkes

+1

s-a-s-k-i-a avatar Feb 15 '16 13:02 s-a-s-k-i-a

+1

altugank avatar Apr 15 '16 14:04 altugank

+1

santiazpi avatar May 29 '16 20:05 santiazpi

+1

kumosal avatar Jun 19 '16 02:06 kumosal

+1

pmb6tz avatar Jun 23 '16 04:06 pmb6tz

+1

tiagocasagrande avatar Jun 23 '16 04:06 tiagocasagrande

+100

HandyGadget avatar Sep 25 '16 15:09 HandyGadget

+1

wusatiuk avatar Jan 04 '17 06:01 wusatiuk

+1 for subdomain

christoferw avatar Feb 01 '17 18:02 christoferw

+1

chrispage1 avatar Feb 06 '17 10:02 chrispage1

Please also see this thread in community forum: http://community.rtcamp.com/t/create-ssl-with-multisite-domain-mapping/7935/11

s-a-s-k-i-a avatar Mar 07 '17 15:03 s-a-s-k-i-a

+1

xigem avatar Mar 20 '17 14:03 xigem

Sorry for a delayed reply. I am wondering why not use multisite + subdomains with domain mapping?

rahul286 avatar Jun 02 '18 12:06 rahul286

I think the question thats being asked is ~ now that Letsencrypt supports wildcard domains ~ "why can't [or when will?] the following ee site create xyz.tld --wpsubdom --le create a multisite install together with a letsencrypt wildcard cert enabled?"

HandyGadget avatar Jun 04 '18 17:06 HandyGadget

There are actually two separate problems here:

1st problem is, that when we setup new sites (i.e. new domains as vhosts) to be used in the very multisite setup, route them to the multisite webroot, the le script implemented with ee, nginx is unable to provide a working acme directory for the le cert renewal. schema: multisite setup with subdomains with domain mapping domain.com domain2.com domain3.com etc.

this causes a lot of extra work every 90 days, if you want to renew le certs for domains that are mapped on such a multisite installation.

2nd problem is, when we setup a multisite with subdomains via ee and simply use subdomains, then the le client script which is implemented with ee is unable to get matching le certs. schema: multisite setup with subdomains sub.domain.com sub2.domain.com sub3.domain.com etc.

it would be a lot easier if the le client script received some love and le acme version was updated to v2 so we could have wildcard certs.

s-a-s-k-i-a avatar Jun 04 '18 17:06 s-a-s-k-i-a

The somewhat brilliant, but no-longer-maintained WP Encrypt handled domain mapping really well, and processed subdomains on their own which eliminated the need for wildcard in some cases.

Wildcard support would be perfect for subdomains, but it would be nice to have EE query the site via WP-CLI to pull mapped domains as well and add them to the renewal conf for LE.

Finally, it would be nice if this wasn't a 4.0 feature as this is something most of are implementing on our own in the current build.

cfrazier avatar Jun 04 '18 18:06 cfrazier

The other day I found a bash script to install Let's Encrypt SSL certificates automatically using acme.sh with EasyEngine. I didn't try it out because I read that a limitation was that "wildcard certs are only available with Cloudflare DNS API" I don't understand that and didn't have much time to investigate, so I moved on. Perhaps its worth some further investigation?

HandyGadget avatar Jun 04 '18 19:06 HandyGadget

Hello, it's because wildcard certificates can only use DNS validation to be issued. And Cloudflare is one of the most popular DNS hosting service, and provide a fast DNS propagation. But you can easily adapt my script to use another DNS provider supported by acme.sh

VirtuBox avatar Jun 04 '18 23:06 VirtuBox

OK, many thanks for the information.

That wasn't clear from the quick reading of the project description.

The reason it put me off trying is that I used to find Cloudflare very good, when they first started, but of late both the free and the PRO version tend to slow down TTFB too much to useful.

Am I right in assuming that, if the DNS was configured let's say 24 hours in advance of running the script, then most DNS providers would be able to validate the IP address?

I have always had problems with validation on Linode's DNS servers, but very rarely had a problem with DigitalOcean's, even when I have only configured the PTR at my registrar a couple of hours earlier.

HandyGadget avatar Jun 05 '18 00:06 HandyGadget

@TerenceMilbourn wildcard support is on the roadmap. We are using https://traefik.io/

I see there is no answer to my original question "why anyone would use WordPress multisite subdir + domain mapping". As far as WordPress multisite subdomains and optional domain mapping - they are already being worked upon in v4. So closing this issue as our discussion is going bit off-topic.

rahul286 avatar Jun 05 '18 05:06 rahul286