微信小程序苹果手机IOS连接报网络错误,但是安卓手机正常。
这个问题主要是因为SSL版本问题,苹果版本的微信支持的是SSL v1.2,所以需要设置一下。
windows服务器:
打开powershell,复制并运行一下下面的命令,重启服务器,就正常了。#EnablesTLS1.2onwindowsServerR2andWindows7
#Thesekeysdonotexistsotheyneedtobecreatedpriortosettingvalues.
md"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2"
md"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Server"
md"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Client"
#EnableTLS1.2forclientandserverSCHANNELcommunications
new-itemproperty-path"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Server"-name"Enabled"-value1-PropertyType"DWord"
new-itemproperty-path"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Server"-name"DisabledByDefault"-value0-PropertyType"DWord"
new-itemproperty-path"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Client"-name"Enabled"-value1-PropertyType"DWord"
new-itemproperty-path"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Client"-name"DisabledByDefault"-value0-PropertyType"DWord"
#DisableSSL2.0(PCICompliance)
md"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL2.0\Server"
new-itemproperty-path"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL2.0\Server"-nameEnabled-value0-PropertyType"DWord"
#EnablesTLS1.2onWindowsServerR2andWindows7#Thesekeysdonotexistsotheyneedtobecreatedpriortosettingvalues.md"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2"md"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Server"md"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Client"#EnableTLS1.2forclientandserverSCHANNELcommunicationsnew-itemproperty-path"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Server"-name"Enabled"-value1-PropertyType"DWord"new-itemproperty-path"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Server"-name"DisabledByDefault"-value0-PropertyType"DWord"new-itemproperty-path"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Client"-name"Enabled"-value1-PropertyType"DWord"new-itemproperty-path"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.2\Client"-name"DisabledByDefault"-value0-PropertyType"DWord"#DisableSSL2.0(PCICompliance)md"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL2.0\Server"new-itemproperty-path"HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL2.0\Server"-nameEnabled-value0-PropertyType"DWord"
如果觉得《微信小程序ios版本连接不了服务器 微信小程序苹果手机IOS连接报网络错误解决方案...》对你有帮助,请点赞、收藏,并留下你的观点哦!