“无法建立 SSL 连接”,Android 设备上的 Xamarin Android 应用程序而不是模拟器
在 Android 设备上测试我的 Xamarin 跨平台应用程序,当我尝试发出 HTTP 请求时,出现以下消息:“System.Net.Http.HttpRequestException:无法建立 SSL 连接,请参阅内部异常。--- > System.Security.Authentication.AuthenticationException:身份验证失败,请参阅内部异常 ---> Ssl 错误:100000f7:SSL例程:OPENSSL_internal:WRONG_VERSION_NUMBER位于/Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/boringssl/ssl/tls_record.c:217”和“SSL例程:OPENSSL_internal:WRONG_VERSION_NUMBER”
测试应用程序在 Android 模拟器上运行良好,但在物理设备中我有这个错误。我读到这是服务器证书的问题,但我该如何解决呢?
此致 :)
Testing my Xamarin cross-platform app on an Android Device, I have the following message when I try to make an HTTP request: "System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER at /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/boringssl/ssl/tls_record.c:217" and "SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER"
Testing the app on Android Emulator it works fine, but in phisically device I have this error. I read that is a problem with server certificates, but how can I solve it?
Best Regards :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论