«April 2025»
12345
6789101112
13141516171819
20212223242526
27282930


公告

The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.

----George Bernard Shaw


导航
首页(31)
网页编程(7)
人文科学(1)

最新更新
服务器TLS1.2设置
重新审视翻译行业
中国翻译界现状堪忧
两岸四地外国专名翻译异同
firefox与IE对CSS的不同解
Humor from Interne
墨菲定律、二八法则、马太效应\零和游
羽毛球比赛规则
羽毛球场地规则介绍
网页设计优化

新回复
回复:陶瓷工业术语汇编3
回复:中国武术拳名(N)
回复:中国武术拳名(N)

留言
签写新留言


blog信息
blog名称:译海孤舟
日志总数:31
评论数量:10
留言数量:1
访问次数:233051
建立时间:2006年9月8日


广告位招租

链接
















 


welcome to the blog world
[网页编程]服务器TLS1.2设置
无形子 发表于 2018/11/7 16:51:00

今天要给微信小程序提供ajax,但小程序端却显示服务器TLS只是1.0,它要1.2的,如何配置TLS1.2:

首先我们要确定系统是否支持TLS1.2 ,参考如下配置图↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 

windows server 2003不支持
windows sever 2008R2是支持的。

第一个方法 操作注册表 

打开注册表 cmd 运行 regedit 
1.找到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols 然后 右键->新建->项->直接新建TLS 1.2

2.再文件TLS 1.2分别 右键->新建->项->新建Server, Client

3.在新建的Server和Client中都新建如下的项(DWORD 32位值),总共4个
DisabledByDefault [Value = 0]
Enabled [Value = 1]


第二种方法 直接导入注册表文件

1.新建文本文件,将一下代码复制进去,后缀改为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 [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 “Enable”=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server] “DisabledByDefault”=dword:00000000 “Enable”=dword:00000001 [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 “Enable”=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server] “DisabledByDefault “=dword:00000000 “Enable”=dword:00000001

2.禁用老SSL配置

打开HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client 配置如下
DisabledByDefault [Value = 0]
Enabled [Value = 0]

然后重启系统。


发表评论:
昵称:
密码:
主页:
标题:
博客频道首页 | 联系我们 | 博客注册 | 博客登陆| 中国译典| 译典论坛| 翻译文库| 在线翻译| 网站首页

Powered by Chinafanyi.com © Copyright 2004. All rights reserved.
Processed in 0.055 second(s), page refreshed 4084265 times.