I am using the le script command in windows powershell to issue ssl certificates. Here is the command I am entering:
le --key account_key.key --csr domain_csr.csr --csr-key domain_key.key --crt domain_crt.crt --domains "mywebsite.com" --path C:/inetpub/wwwroot/mywebsite/.well-known/acme-challenge --generate-missing --export-pfx "password"
The script successfully places the verification files in the correct directory but fails with verification.
Domain verification results for 'mywebsite.com': error. Invalid response from http://mywebsite.com/.well-known/acme-challenge/DtIyGDuBkjuc8P3jHUHN9stmi7tksRnq1BGQXYIJcSg: "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> "HTML><HEAD><TITLE>Not Found</TITLE>
When I try to access the link mywebsite.com/.well-known/acme-challenge/DtIyGDuBkjuc8P3jHUHN9stmi7tksRnq1BGQXYIJcSg I receive a 404 error stating the requested resource was not found.
I am using IIS and I added a MIME type with file name extension as “.” and MIME type as “text/plain” omitting double quotes. When I use ZeroSSL’s free ssl certificate wizard tool, it works successfully.
I am stumped as to why it’s failing here but works successfully through the tool.