android可以真机预览,ios报这个错误。

主要是因为使用的sever2008  IIS7 默认使用的SSL2.0,而iOS微信需要使用TLS 1.2。只要修改一下,启用server 2008 的TLS 1.2就可以了。具体方法可以参考https://support.quovadisglobal.com/kb/a433/how-to-enable-tls-1_2-on-windows-server-2008-r2.aspx

简单来说就是:打开注册表编辑器,找到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols 在下面新建项 TLS 1.2,在TLS1.2 下面建立Client和Server2个项,在2各项下面分别添加  DisabledByDefault Enabled  , 前者为0  后者为1 。改好之后重启服务器即可。

或可以把下面的代码复制到PowerShell里运行一下,然后重启服务器。

# 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"
# 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"

微信小程序在iOS端,出现SSL错误,无法建立安全连接的问题解决相关推荐

  1. 微信小程序解决ios端时间格式兼容的问题

     微信小程序获取当时时间new Date时,会在ios真机上出现问题,具体表现为时间格式会报错并显示出NaN.这个bug并不会在模拟器和安卓系统出现,只会在ios系统上出现,具体原因是ios不支持符号 ...

  2. 微信小程序ios版本连接不了服务器,微信小程序苹果手机IOS连接报网络错误解决方案...

    微信小程序苹果手机IOS连接报网络错误,但是安卓手机正常. 这个问题主要是因为SSL版本问题,苹果版本的微信支持的是SSL v1.2,所以需要设置一下. windows服务器: 打开powershel ...

  3. 解决微信小程序在IOS端会上下左右滑动的问题

    在开发微信小程序的时候发现在IOS端会出现上下左右都能滑动的情况,但是安卓端就不会出现这种情况,百度了一下好像IOS就是默认可以滑动,安卓默认不允许,本篇就这个问题解决一下,毕竟可以随意滑动视觉上不太 ...

  4. 10分钟上线 - 利用函数计算构建微信小程序的Server端

    摘要: 阿里云函数计算是一个事件驱动的全托管计算服务.通过函数计算,您无需管理服务器等基础设施,只需编写代码并上传.微信小程序是一种不需要下载安装即可使用的应用,它可以在微信内被便捷地获取和传播. 当 ...

  5. 口令红包-利用函数计算构建微信小程序的server端

    摘要: 阿里云函数计算是一个事件驱动的全托管计算服务.通过函数计算,您无需管理服务器等基础设施,只需编写代码并上传.微信小程序是一种不需要下载安装即可使用的应用,它可以在微信内被便捷地获取和传播. 当 ...

  6. 利用Serverless构建微信小程序的Server端

    前言 这篇文章适合所有的想微信小程序开发新手.老鸟以及想准备学习开发微信小程序的程序猿.本文以开发一个类似"语音口令红包"小程序为例,向您讲解如何使用阿里云函数计算快速构建微信小程 ...

  7. 微信小程序在ios中下拉出现“橡皮筋”效果

    今天和大家聊一聊微信小程序在ios中下拉出现"橡皮筋"效果 问题现象 话不多说,先看代码(使用taro编写). 代码很简单,一个flex的容器+一个允许进行下拉刷新的ScrollV ...

  8. 微信小程序中IOS获取不到时间(年、月)

    微信小程序中获取时间戳IOS不兼容 new Date("2017-06-16") 在IOS会出现NAN的情况所以对于时间转换需要另行封装,解决方案如下 把"-" ...

  9. java webpack web项目_官方出品,微信小程序和 Web 端同构解决方案——kbone

    介绍 最近在琢磨一些小程序开发和移动web开发,偶然间在Github上看到了这样一个项目--kbone,一个致力于微信小程序和 Web 端同构的解决方案.微信小程序的底层模型和 Web 端不同,我们想 ...

最新文章

  1. js实现数据结构及算法之图和图算法(Graphs)
  2. Paddle下的Tensor运算以及简单回归问题
  3. C语言中 #pragma pack()
  4. Python内置数据结构及其复杂度
  5. mysql db2免费下载_DB2ToMysql(DB2导入到Mysql工具)下载
  6. import与require的区别
  7. php导出大量excel表,php导出大量数据到excel时,有哪些比较好的处理方法?
  8. c语言程序中注释的格式化,格式化C语言命令indent
  9. 【PYTHON 笔记】:捕捉异常
  10. 制造业Google Glass 焕发巨大活力
  11. python 输出log_python:logging模块(记录打印日志)
  12. java 快速排序流程图_java简单快速排序实例解析
  13. .atitit.web 推送实现解决方案集合(3)----dwr3 Reverse Ajax
  14. 小白学习一eNSP华为模拟器(3) 交换机基础配置 实验四VLAN 配置Trunk
  15. 量子十问之四:“薛定谔猫”为什么会自然死亡?
  16. 变焦单目论文阅读笔记
  17. 5G NR标准 第9章 传输信道处理
  18. Camera构图之三分法
  19. Java社招最全面试题,成功收获美团,小米offer
  20. 部落节点和跨群集搜索:Elasticsearch中联合搜索的未来

热门文章

  1. excel 自定义工具栏_您的自定义Excel工具栏
  2. Ceph部署(一)集群搭建
  3. web:常见安全问题
  4. ITK图像itk::Image指针参数传递失败
  5. python sklearn Rideg岭回归--交通流量预测实例
  6. S5720 telnet配置后无法登陆
  7. mysql 的delete from 子查询限制
  8. CCF刷题合集(部分题解)
  9. Refused to execute script from ‘「URL」‘ because its MIME type (‘text/html‘) is not executable
  10. 各位集美兄得看过来! 利用AI给青春有你2的选手们做数据分析挖掘(四):AI分析谁最容易出道