A
A
Anton Ivanov2020-08-20 17:45:03
IIS
Anton Ivanov, 2020-08-20 17:45:03

How to make Certbot friends on windows 2019 IIS 10?

Good day. I'm trying to make a new certificate for my exchange using a sertbot.
https://certbot.eff.org/lets-encrypt/windows-other I took the sertbot from here.
Added MIME TYPES to iis: . text/plain
I follow the manual, I run the powershell with administrator rights:
certbot certonly --webroot
mail.domain.ru
c:\inetpub\wwwroot
Then it crashes with errors

PS C:\inetpub\wwwroot\.well-known\acme-challenge> certbot certonly --webroot
Saving debug log to C:\Certbot\log\letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Please enter in your domain name(s) (comma and/or space separated)  (Enter 'c'
to cancel): mail.domain.ru
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mail.domain.ru
Input the webroot for mail.domain.ru: (Enter 'c' to cancel): c:\inetpub\wwwroot
Waiting for verification...
[31mChallenge failed for domain mail.domain.ru[0m
http-01 challenge for mail.domain.ru
Cleaning up challenges
[31mSome challenges have failed.[0m
[1m
IMPORTANT NOTES:
[0m - The following errors were reported by the server:

   Domain: mail.domain.ru
   Type:   unauthorized
   Detail: During secondary validation: Invalid response from
   https://mail.domain.ru/.well-known/acme-challenge/Z4uGcb2Cfr5eGCkd6Azg68pgPHfHrjfv20ACA-u19DU
   [xx.xx.xx.xx]: 404

   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.


I created a file named Z4uGcb in the acme-challenge folder, it is available.
What's wrong, where can I look?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2020-08-20
@xmoonlight

Detail: During secondary validation: Invalid response from
   https://mail.domain.ru/.well-known/acme-challenge/Z4uGcb2Cfr5eGCkd6Azg68pgPHfHrjfv20ACA-u19DU
   [xx.xx.xx.xx]: 404
make the public file available.
Test through a browser using a different network (mobile, for example).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question