I'm trying to install letsencrypt certificate Certify , but I get an error that (I think) has nothing to do with the Certify. The problem is how my web.config is configured to handle my Asp.Net Core application - Angular2.
I did not configure web.config, Javascript services . The Certify certification page at the bottom of the page says about my problem:
I get the error "Automatic checks for content without extension." This means that your web server configuration does not allow files without an extension to serve site visitors. Unfortunately, this is a requirement of the Lets Encrypt service to receive a confirmation file, which is automatically created on your site when you request a certificate (more).
To help with this requirement, we try to automatically configure it for you. If you look at {your site}. Well-known \ acme-challenge, you will see that we created the web.config file and the configcheck file. If you cannot access this configcheck file in your web browser (http: // {your site} /. Known / acme -challenge / configcheck, then Allows the encryption program to not have access to the files it needs. You can edit the web.config file in this folder to receive the files without the extension, then you can re-request your certificate. The mimeMap entry for either "." or ". *" usually works depending on your operating system version.
- , , web.config, , . - .well-known/acme-challenge WebBrowser.
web.config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
<rewrite>
<rules>
<rule name="redirect" stopProcessing="true">
<match url="^$" />
<action type="Rewrite" url="/index.html" />
</rule>
<rule name="Angular 2 pushState routing" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" pattern=".*\.[\d\w]+$" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(.well-known)" negate="true"/>
<add input="{REQUEST_URI}" pattern="^/(signin)" negate="true" />
</conditions>
<action type="Rewrite" url="/index.html" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
.
