在 Qualys SSL Labs SSL 测试中获得 A+ 评级的秘技 2020版 - Microsoft IIS

作者:gc(at)sysin.org,主页:www.sysin.org

2. Microsoft IIS

根据规则:TLS 1.2 + HSTS + No Warning + TLS_FALLBACK_SCSV = A+

理论上 Windows & IIS 不支持 TLS_FALLBACK_SCSV,所以无法 A+,但是开启 HSTS,并仅启用 TLS1.2 可以获得 A+ 得分,这样就不存在协议降级风险。

Microsoft 的 SSL 基于 Schannel 实现,与 OpenSSL 无关(或称 Microsoft TLS)。

Schannel is a Security Support Provider (SSP) that implements the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) Internet standard authentication protocols.
The Security Support Provider Interface (SSPI) is an API used by Windows systems to perform security-related functions including authentication. The SSPI functions as a common interface to several SSPs, including the Schannel SSP.

IIS 获得 A 级别

测试环境:Windows 10 on Windows 2019

执行 ps 脚本 或者 IIS Crypto 工具,将获得A

IISCrypto:点击 “Best Pratices”,Server Protocols 只勾选 TLS 1.2,Apply 并重启生效。

在这里插入图片描述

仅启用 TLS 1.2 将获得 A,远程桌面也可以正常连接,启用 HSTS 将或者 A+。

在早期的 Windows 版本中,仅启用 TLS 1.2 远程桌面将无法链接。

HSTS

IIS 管理器 – 选择站点 – 高级设置 – HSTS

IIS
IIS

TLSv1.3

IIS 10 & Windows Server 2019 正式版尚未支持,参看

最新的 Windows Insider Preview 已经支持 TLS 1.3,并且通过 MSQUIC 实验性的支持 HTTP/3。

the latest Windows Insider Preview Builds for Schannel’s TLS 1.3 support.

HTTP/2

版本要求:

HTTP2 requires Windows 2016 with IIS 10 or later.

配置方法:

首先配置好 SSL 证书并创建 HTTPS 站点,IIS 10 默认开启 HTTP/2 协议,所以我们都不要额外去设置(可以禁用,新建站点时或者"编辑网站" > "绑定…“勾选"禁用 HTTP/2”)。

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值