There are several issues.
- Awful error messages when there are access issues.
It does not tell what it is doing when an error occurs and only displays the error message.
The Escape codes (β[31m) in front of the messages are not particularly professional looking.
- It does not check if the webroot directory is writable by the account it uses. Typically it might be able to create the .well-known directory, but nothing below.
Even if certbot will not change the security itself, the person running the program should be notified.
Here is where point 1 comes into play.
- Certbot creates a non-readable file for some reason in the acme-challenge directory. It should be readable since "everyone" can read it. The file does not use inherited security. I suspect that once the IIS web service find that it is unreadable, it caches that result. So changing security will not work.
http://www.stavangerbilder.no/.well-known/acme-challenge/gHFGaWhZxKCq40-QwSvO4fGIgxdnIqFzxHxVprGTigA
Gives a 404 error in Chrome.
http://www.stavangerbilder.no/.well-known/acme-challenge/julius.txt
Retrieves the content of the file which has inherited security.
My domain is: www.stavangerbilder.no
I ran this command: C:\Program Files (x86)\Certbot\bin>.\certbot.exe certonly --webroot --debug-challenges --webroot-path C:\Sites\Stavangerbilder --dry-run
It produced this output:
β[31mChallenge failed for domain www.stavangerbilder.noβ[0m
http-01 challenge for www.stavangerbilder.no
Cleaning up challenges
β[31mSome challenges have failed.β[0m
β[1m
IMPORTANT NOTES:
β[0m - The following errors were reported by the server:
Domain: www.stavangerbilder.no
Type: unauthorized
Detail: Invalid response from
http://www.stavangerbilder.no/.well-known/acme-challenge/eEcMvepMSkV4rqo3JUc33LkPZzg1q6xVeJx7RJKP-ZI
[91.243.69.5]: "\r\n<html
xmlns="http"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is (include version): IIS 8.5.9600.16384
The operating system my web server runs on is (include version): Windows Server 2012 R2
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 1.14.0