win7 启用 TLS1.2

编程知识 更新时间:2023-05-01 20:51:58

win7 启用 TLS1.2

环境

win7 64位 IIS 7.5 SSL证书

需求

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

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

解决办法

修改注册表

将下面内容保存为 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 版本截图:

注意

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

#### 如果觉得好您就支持下

更多推荐

win7 启用 TLS1.2

本文发布于:2023-04-23 20:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/983e159b0fd9c2a4eb765c564956dfa1.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 99324文章数
  • 25894阅读数
  • 0评论数