的Windows 10 +请求已中止:无法创建SSL/TLS安全通道
问题描述:
他那里,的Windows 10 +请求已中止:无法创建SSL/TLS安全通道
我得到以下错误...
System.Net.WebException was caught
HResult=-2146233079
Message=The request was aborted: Could not create SSL/TLS secure channel.
Source=System
StackTrace:
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
我试图调用第三方API。 。这是工作在Windows 7中,但之后我升级到Windows 10失败...
我也曾尝试使用下面的编码
ServicePointManager.Expect100Continue = true;
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
安全协议改变
我也尝试了一些注册表编辑像下面..
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319
Value: SchUseStrongCrypto
另一个奇怪的问题是,它是连接交替的方式... 第一次连接,但中止连续请求..
请任何一个可以帮我解决这个问题
注:问题出现后,我从Windows 7
答
更新Windows 10,我认为你正在使用的网络服务与SHA1加密。 Windows更新将阻止它的风险。
以下链接列出更新。 https://blogs.windows.com/msedgedev/2016/04/29/sha1-deprecation-roadmap/
卸载更新/ s它应该工作。它为我做了。 但是,您应该考虑升级该Web服务。
我至今还没有找到解决这个问题的方法。