“无法建立 SSL 连接”,Android 设备上的 Xamarin Android 应用程序而不是模拟器

发布于 2025-01-13 09:59:35 字数 509 浏览 2 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文