Has anyone integrated Umbraco 8+ with appservice-acmebot (https://github.com/shibayan/appservice-acmebot) to automate the issuance and renewal of certificates through Let's Encrypt? Just not able to get it working while keeping the site and backoffice working, too. The problem is
that Umbraco always intercepts the call to http://domain/.well-known/... Have set both Umbraco.Core.ReservedUrls and Umbraco.Core.ReservedPaths to various combinations of ~/.well-known, ~/.well-known/, ~/.well-known/acme-challenge, ~/.well-known/acme-challenge/ with no luck. It's as if those settings are not actually implemented within Umbraco.
This got me on the right track, but I had to make a few more modifications to the .well-known/web.config to reset some of the system.web and system.webServer config of the Umbraco application. This is what I ended up with:
Note that you should also upload a file called configured (no extension) to the .well-known folder, to tell acmebot not to overwrite your modified web.config.
I finally gave up because nothing worked consistently. It seems as if Umbraco just ignored the reserved paths and reserved url settings and tried to serve the .well-known path anyway. In the end, I scrapped it altogether. Since we are using Microsoft Azure for hosting, and they've greatly improved their free cert offering, we switched to that. No more hassles.
Umbraco 8 + appservice-acmebot Let's Encrypt
Has anyone integrated Umbraco 8+ with appservice-acmebot (https://github.com/shibayan/appservice-acmebot) to automate the issuance and renewal of certificates through Let's Encrypt? Just not able to get it working while keeping the site and backoffice working, too. The problem is that Umbraco always intercepts the call to http://domain/.well-known/... Have set both Umbraco.Core.ReservedUrls and Umbraco.Core.ReservedPaths to various combinations of ~/.well-known, ~/.well-known/, ~/.well-known/acme-challenge, ~/.well-known/acme-challenge/ with no luck. It's as if those settings are not actually implemented within Umbraco.
Hi Scott.
You need a rewrite rule like
Forgot to mention that I tried that, too. Still handled by Umbraco.
You might have to set the reservedUrls and put a web.config inside the .well-known folder.
When i am back om work on monday, i will post what we do to make it work.
Hello, Scott. I'm just adding that in my web.config.
Hi Scott.
We do this to be 100% sure that it works. (You might not need it all)
web.config
.well-known/web.config
This got me on the right track, but I had to make a few more modifications to the
.well-known/web.config
to reset some of thesystem.web
andsystem.webServer
config of the Umbraco application. This is what I ended up with:Note that you should also upload a file called
configured
(no extension) to the.well-known
folder, to tell acmebot not to overwrite your modifiedweb.config
.Hi,
for this to work, should the .well-known folder be placed inside the wwwroot folder of the appservice?
In our setup this folder is placed outside of the wwwroot folder, directly in the site folder.
In that case would it be possible to add a virtual path?
I finally gave up because nothing worked consistently. It seems as if Umbraco just ignored the reserved paths and reserved url settings and tried to serve the .well-known path anyway. In the end, I scrapped it altogether. Since we are using Microsoft Azure for hosting, and they've greatly improved their free cert offering, we switched to that. No more hassles.
is working on a reply...