Allows you to encrypt an ACME Challenge file that is not accessible from IIS

I am trying to create an SSL certificate for one of our projects that runs on Azure VM, which has no IP restrictions. However, the task file that is generated causes a 404 error and is not accessible via the Internet.

I tried the following:

  • Moving static content type over extension options less in IIS
  • Adding mime type for text / json, text / html

None of the above works, which makes it very difficult for me to create SSL using this service. Any idea how I can make it available? I gave full access to this particular application pool identifier, so permissions in this case do not seem to be a problem, namely how the smaller files are handled in IIS

Any help is appreciated.

Thanks, Vishal

+8
source share
3 answers

You just add a new MIME type to IIS like this. enter image description here

and try using url in your browser. you will see that enter image description here now you can pass let-encrypt authentication :)

+18
source

Inspired by the accepted answer, I did the following:

I used Plesk for Windows on Godaddy. Go to

Web server settings

In MIME types, add the following node and click OK.

text / plain

Note the dot at the end of the above parameter.

0
source

web.config, ACME 404

<remove fileExtension="." />
<mimeMap fileExtension="." mimeType="text/plain" />
<remove fileExtension=".*" />
<mimeMap fileExtension=".*" mimeType="text/plain" />
0

Source: https://habr.com/ru/post/1622784/