Javax.Net.Ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException: [英] Javax.Net.Ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException:

查看:54
本文介绍了Javax.Net.Ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

https://forums.xamarin.com/discussion/146613/javax-net-ssl-sslhandshakeexception-java-security-cert-certpathvalidatorexception/p1?new=1

我在 xamarin 形式的 android 中遇到了这个问题,有人请指导我解决这个问题

Im facing this issue in xamarin forms android somebody please guide me to resolve this

推荐答案

要禁用 SSL 验证,您可以将此行添加到 onCreate (MainActivity) 和 FinishedLaunching (AppDelegate).

To disable SSL validation you can add this line to onCreate (MainActivity) and FinishedLaunching (AppDelegate).

System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

如果这不起作用,您可以按照此指南

If this doewsn't work, you can follow this guide

这篇关于Javax.Net.Ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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