没有同行证书。不确定该走哪条路线
我正在尝试使用我的应用程序访问 https 网址。我已按照本教程进行操作。我创建的商店具有正确的 CA。但是,当我尝试建立连接时,出现以下错误:
ERROR/IOException(1843): webPost: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
我已经阅读了有关此错误的一些内容,并且人们决定允许他们的应用程序接受所有证书。我认为这确实不能接受。接下来我应该检查什么以确定问题是什么?
I'm trying to hit an https url with my app. I've followed this tutorial. The store I've created has the correct CA. However, when I try to make the connection, I get the following error:
ERROR/IOException(1843): webPost: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I've done some reading about this error and people have decided to allow their apps to accept all certificates. I don't think that's really acceptable. What should I check next to see what the issue is?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将设备配置为忽略 SSL 证书:
http://www.virtualzone.de/2011-02-27/how-to-use-apache-httpclient-with-httpsssl-on-android/(死链接)更新:这里可以看到更好的答案:
通过 HTTPS 使用 HttpClient 信任所有证书
或者做一些事情特定于您的 HttpClient 版本:
使用 HTTPS 的 HttpGet:SSLPeerUnverifiedException
You can configure your device to ignore SSL certificates:
http://www.virtualzone.de/2011-02-27/how-to-use-apache-httpclient-with-httpsssl-on-android/(dead link)UPDATE: Much better answer is visible here:
Trusting all certificates using HttpClient over HTTPS
Or do things specific to your HttpClient version:
HttpGet with HTTPS : SSLPeerUnverifiedException