Lets Encrypt ACME Challenge file not accessable from IIS

不羁的心 提交于 2020-01-29 11:50:54

问题


I have been trying to generate a SSL certificate for one of our projects which is running on an Azure VM which has no IP restrictions. However, the challenge file which is generated throws a 404 error and is not accessible over the web.

I have tried the following:

  1. Moving the static content type above the extension less options in IIS
  2. Adding a mime type for text/json, text/html

None of the above work which is making it really hard for me to generate a SSL using this service. Any idea how I can make it accessible ? I have given full access to that specific App Pool identity so permissions don't seem to be an issue in this case, its just the way the extension less files are being handled in IIS

Any help is appreciated.

Thanks, Vishal


回答1:


You just Add a New MIME Type on IIS like this .

and try use the url at your browser . you will see that Now you can Pass the lets-encrypt authentication :)




回答2:


Taking inspiration from the accepted answer, I did the following:

I was using plesk for windows on Godaddy. Go to

Web server settings

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

text/plain .

Note the dot at the end of the above setting.



来源:https://stackoverflow.com/questions/34596641/lets-encrypt-acme-challenge-file-not-accessable-from-iis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!