Lets Encrypt - needs to read a specific file - not a GET request

So in order for Lets Encrypt to generate and install a certificate it needs to read a specific file. Something like:

However ServiceStack thinks this is a GET request:

Handler for Request not found (404):

Request.HttpMethod: GET

How can I allow IIS to serve this file instead of ServiceStack interpreting it as a REST request?

Temporarily remove ServiceStack handler registration from Web.config before running the install or you could host ServiceStack at a custom route, e.g. /api.

Other than that you might be able to register an ASP.NET HttpHandler in your webconfig matching the .well-known path to route it to ASP.NET’s static file handler or whatever IIS needs to serve that file/path.

Awesome. Temporarily removing the handler registration did the trick.

1 Like