I am struggling with generating LetsEncrypt SAN SSL for SBS 2011 for few days. All is going fine, until ACME CHALLENGE verification. I cannot use DNS verification, because DNS is at ISP and it takes days for any change to get live. So only HTTP validation can be used.
Where IIS stucks?
Simply when it tries to server extension-less ACME VALIDATION file, IIS returns 404 ERROR. File is there, Acme client generates it just fine in proper folder, but it does not show up via web browser, just 404 error due to MIME type. When testing with test.html
file in same folder it gets displayed properly, no problem.
I've already tried:
- Adding MIME type
text/plain
for "." and ".*" extensions, but no go - Moved
StaticFile
mappings aboveExtensionLessUrlHandlers
, but still no go - Edited
applicationhost.config
file and set to Allow:<section name="handlers" overrideModeDefault="Allow" />
- Restarted IIS and whole server, still at no avail
- Used different LE clients, but all of them use IIS and stuck at the same point
- Solution from here does NOT work: IIS: How to serve a file without extension?
When I try localy, I always get this 404 Error in browser:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Any more idea?