广告

本站里的文章大部分经过自行整理与测试

2017年1月21日星期六

Let's Encrypt - IIS - HTTPS 免费

1. 创建 web.config

C:\inetpub\wwwroot\web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension="." mimeType="text/plain" />
        </staticContent>
    </system.webServer>
</configuration>

2. 下载

先安装 .NET Framework 4

https://github.com/Lone-Coder/letsencrypt-win-simple/releases
https://github.com/Lone-Coder/letsencrypt-win-simple/releases/download/v1.9.1/letsencrypt-win-simple.V1.9.1.zip

3. 运行 command prompt

> cd "C:\letsencrypt-win-simple.V1.9.1"
> letsencrypt.exe --accepttos --manualhost member.dlinkddns.com --webroot C:\inetpub\wwwroot

4. IIS 设置

IIS - Server Certificates - 应该出现一个证书是 Issued By: Let's Encrypt Authority...

Sites - Default Web Site

4.1) IIS - SSL Settings - Require SSL - Client certificates: Accept

4.2) Actions - Bindings... - Add - https (443) - 在 SSL certificate 选证书

没有评论:

发表评论