美文网首页
win7 启用 TLS1.2

win7 启用 TLS1.2

作者: 海玲珑 | 来源:发表于2017-07-07 14:15 被阅读0次

win7 启用 TLS1.2

环境

win7 64位 IIS 7.5 SSL证书

需求

微信小程序发起请求要求是HTTPS,并且TLS版本是1.2或1.2以上版本

未配置前的网站TLS 版本的截图

1.jpg

解决办法

修改注册表

将下面内容保存为 reg 后缀的任意名文件,比如:tls12.reg, 然后双击导入到注册表中即可。 也可以手动一项一一项添加。

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

还有一张图:


这里写图片描述
这里写图片描述
成功后网站 TLS 版本截图:
2.jpg
注意

如果要将 TLS1.2 改回之前的 TLS1.0,删除掉注册表中的TLS1.1 和TLS1.2 即可,如图:


这里写图片描述

相关文章

网友评论

      本文标题:win7 启用 TLS1.2

      本文链接:https://www.haomeiwen.com/subject/krglhxtx.html