X.iOS Cycle7 似乎破坏了 SSL [英] X.iOS Cycle7 seems to break SSL

查看:33
本文介绍了X.iOS Cycle7 似乎破坏了 SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我在 Beta 频道将 XS 更新到了 RC 版本,到了 cycle7.现在我在使用 iOS 连接到 HTTPS 连接时遇到问题,错误:

Yesterday I updated XS to the RC version in the Beta-channel, to cycle7. Now I'm experiencing problems when connecting to HTTPS-connections with iOS, error:

Error: SecureChannelFailure (The authentication or decryption has failed.)
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x0005e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/9.8.0.294/src/mono/mcs/class/System/System.Net/HttpWebRequest.cs:1005 
at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (IAsyncResult iar, System.Func`2 endFunction, System.Action`1 endAction, System.Threading.Tasks.Task`1 promise, Boolean requiresSynchronization) [0x00014] in /Library/Frameworks/Xamarin.iOS.framework/Versions/9.8.0.294/src/mono/external/referencesource/mscorlib/system/threading/Tasks/FutureFactory.cs:550 

进一步的内部异常:

Object reference not set to an instance of an object
at Mono.Security.Protocol.Tls.CipherSuite.createEncryptionCipher () [0x0008a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/9.8.0.294/src/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/CipherSuite.cs:489 
at Mono.Security.Protocol.Tls.CipherSuite.InitializeCipher () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/9.8.0.294/src/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/CipherSuite.cs:278 
at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (IAsyncResult result) [0x001d6] in /Library/Frameworks/Xamarin.iOS.framework/Versions/9.8.0.294/src/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:468 

我正在使用 Refit 进行 API 通信.通过有效的 HTTPS 证书连接到 CloudFlare.当前在上一个周期中构建的应用程序仍然可以正常工作.

I'm using Refit for API communications. Connection is made to CloudFlare on a valid HTTPS certificate. The current app, which is build in the previous cycle, is still working fine.

我没有对代码进行任何更改,该代码已运行数月.我尝试对 SSL 使用新的Apple TLS"实现,这解决了一些问题,但在上传图像时给了我 SSL 问题.我不是 100% 确定我是否已经应该提交错误报告.任何人都可以给我一些关于我可以尝试的提示吗?还是应该直接提交错误报告?

I haven't changed anything at the code, which is working for months. I've tried to use the new "Apple TLS" implementation for SSL, which solved a bit, but gives me SSL issues when uploading an image. I'm not 100% sure if I already should file a bug-report. Anyone could give me some tips on what I could try? Or should I directly file a bug-report?

推荐答案

此异常仅在启用Xamarin Inspector"加载项时发生.正如塞巴斯蒂安在这里所说的这里这可能是交换程序集".

This exception only happens when you have the "Xamarin Inspector" add-in enabled. As Sebastian here said here It's probably 'swapping assemblies'.

解决方法是在 XS 的插件管理器中禁用插件.之后就不会再出现异常了.

The solution is to disable the add-in in the Add-in manager of XS. After that the exception won't occur anymore.

这篇关于X.iOS Cycle7 似乎破坏了 SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆