源码论坛公告:本站是一个交流学习建站资源的社区论坛,旨在交流学习源码脚本等资源技术,欢迎大家投稿发言! 【点击此处将锦尚放在桌面

源码论坛,商业源码下载,尽在锦尚中国商业源码论坛

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 8776|回复: 2
打印 上一主题 下一主题

[常见问题] 小程序调试时提示:小程序要求的TLS版本必须大于等于1.2错误提示的解决办法

[复制链接]

3102

主题

3503

帖子

13万

金币

超级版主

Rank: 8Rank: 8

积分
271670
跳转到指定楼层
1#
发表于 2018-3-12 00:18:08 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
小程序调试时提示:小程序要求的TLS版本必须大于等于1.2错误提示的解决办法,适应于WINDOWS系统
此问题最近在微信小程序开发中,比较常见。

错误提示截图:



在解决这个问题之前,我们需要了解一下,当前的系统环境是否支持TLS1.2以上,可以参考一下表格:



解决方法:

打开PowerShell



将以下代码复制到PowerShell运行窗口中执行,后重启服务器即可

  1. # Enables TLS 1.2 on windows Server 2008 R2 and Windows 7

  2. # These keys do not exist so they need to be created prior to setting values.
  3. md "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2"
  4. md "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server"
  5. md "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client"

  6. # Enable TLS 1.2 for client and server SCHANNEL communications
  7. new-itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server" -name "Enabled" -value 1 -PropertyType "DWord"
  8. new-itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server" -name "DisabledByDefault" -value 0 -PropertyType "DWord"
  9. new-itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client" -name "Enabled" -value 1 -PropertyType "DWord"
  10. new-itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client" -name "DisabledByDefault" -value 0 -PropertyType "DWord"

  11. # Disable SSL 2.0 (PCI Compliance)
  12. md "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server"
  13. new-itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server" -name Enabled -value 0 -PropertyType "DWord"
  14. # Enables TLS 1.2 on Windows Server 2008 R2 and Windows 7 # These keys do not exist so they need to be created prior to setting values. md "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2" md "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server" md "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client" # Enable TLS 1.2 for client and server SCHANNEL communications new-itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server" -name "Enabled" -value 1 -PropertyType "DWord" new-itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server" -name "DisabledByDefault" -value 0 -PropertyType "DWord" new-itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client" -name "Enabled" -value 1 -PropertyType "DWord" new-itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client" -name "DisabledByDefault" -value 0 -PropertyType "DWord" # Disable SSL 2.0 (PCI Compliance) md "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server" new-itemproperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server" -name Enabled -value 0 -PropertyType "DWord"
复制代码


或将以下附件上传服务器,双击运行

下载地址
您已购买

金币

云主机产品:idc.52jscn.com   站长服务:help.52jscn.com   微信魔方:mofang.52jscn.com定制开发



分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享

0

主题

5

帖子

3

金币

初级会员

Rank: 1

积分
14
QQ
2#
发表于 2018-5-2 17:27:04 | 只看该作者
为了不扰乱会员对源码的测试,有问题咨询右侧客服不要直接回复,否则视为非法信息屏蔽会员ID!
1.不少搬屋公司在接到业务的时候第一件事就是问客户提供写字楼平面图,因为大部分选择搬写字楼都是大型公司,人多或者写字楼大,如果没有写字楼平面图业务往往无法顺利开始。一般找写字楼物业及找装修公司一般就可以拿到的,然后在写字楼平面图上标记住各个部门即可。



2.搬写字楼要提前安排好搬运公司的负责人一般都在写字楼的员工休息日或下班时间进行,这种时候如果不提前做好责任安排和员工都离开了,单单依靠几个主管干部配合搬运公司是不够的,要提前对各个部门安排好配合的员工,指导各部门完成包装清点工作和清点物品等绝对是正确的选择。



3.贵重物品搬迁前后要拍照留底,很多公司都喜欢在写字楼内摆放风水等物品,搬写字楼时由于搬的物件太多,这类物品很难找到专人去监管,如果搬运公司在搬迁时未告知物品损坏,搬迁验收时由于没有图片作对比是无法追究搬运公司的责任,所以这类物品在运送之前最好拍照留底,避免损坏后分不清责任。



4.搬进新写字楼前是彻底检查墙角,物件搬入写字楼之前最好要求搬运公司做好防护,公司的代表最好和搬运公司的负责人检查好写字楼墙壁拐角及门框等易损部位。



查询网址:http://www.transys.aim.hk/

0

主题

48

帖子

3

金币

初级会员

Rank: 1

积分
44
QQ
3#
发表于 2018-8-27 08:46:19 | 只看该作者
为了不扰乱会员对源码的测试,有问题咨询右侧客服不要直接回复,否则视为非法信息屏蔽会员ID!
我说怎么回事
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

锦尚中国源码论坛

聚合标签|锦尚中国,为中国网站设计添动力 ( 鲁ICP备09033200号 ) |网站地图

GMT+8, 2024-4-26 09:20 , Processed in 0.056370 second(s), 20 queries .

带宽由 锦尚数据 提供 专业的数据中心

© 锦尚中国源码论坛 52jscn Inc. 非法入侵必将受到法律制裁 法律顾问:IT法律网 & 褚福省律师 锦尚爱心 版权申诉 版权与免责声明