Javax.Net.Ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException: [英] Javax.Net.Ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException:
本文介绍了Javax.Net.Ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 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屋!
查看全文