Let's Encrypt confirmation on IIS not working -


i'm trying use certify ssl manager configure ssl certificates let's encrypt on iis server, fails during check.

https://dev.mywebsite.com/.well-known/acme-challenge/configcheck/

this works:
https://dev.mywebsite.com/well-known/acme-challenge/configcheck https://dev.mywebsite.com/.well-known/acme-challenge/test.txt

so assumed it's . before well-known. fact test.txt works confuses me.

i've configured directory according discussion: https://github.com/ebekker/acmesharp/issues/15

i have bunch of rewrite stuff in web.config, if remove section completely, still fails.

the configcheck url file, not directory. make sure file exists on disk (i.e. c:\inetpub\wwwroot\.well-known\acme-challenge\configcheck) in webroot. try load links barebones web.config in website root directory (if using asp.net):

<?xml version="1.0" encoding="utf-8"?> <configuration>     <system.webserver>         <staticcontent>             <mimemap fileextension="." mimetype="application/unknown" />         </staticcontent>     </system.webserver> </configuration> 

if works, try adding in web.config sections including routes/rewrite until figure out what's causing problem.

if using asp.net core wwwroot folder hosting static files, you'll have modify config in startup.cs instead:

public void configure(iapplicationbuilder app, ihostingenvironment env) {     string filepath = path.combine(directory.getcurrentdirectory(), @"wwwroot/.well-known");     app.usestaticfiles(new staticfileoptions()     {         fileprovider = new physicalfileprovider(filepath),         requestpath = new pathstring("/.well-known"),         serveunknownfiletypes = true     });     // ... other startup code here } 

Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -