项目背景:
开发微信小程序的后台接口,安卓请求正常,IOS请求失败。
调查发现是:服务器协议版本不能低于TLS v1.2
ATS检测链接: https://myssl.com/ats.html
接下里我们需要从v1.1 升级到 v1.2
服务器背景:
Windows Server 2008R2
SSL证书 是阿里云免费证书
步骤1:
用管理员身份打开PowerShell
步骤2: 执行下面的命令
# 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