没有同行证书。不知道采取哪条路线 [英] No peer cert. Not sure which route to take

查看:131
本文介绍了没有同行证书。不知道采取哪条路线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打一个HTTPS URL与我的应用程序。我已经遵循本教程。我创建了这家商店有正确的CA.但是,当我尝试进行连接,我得到以下错误:

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?

推荐答案

您可以配置设备忽略SSL证书: http://www.virtualzone.de/2011-02-27/how-to-use-apache-httpclient-with-httpsssl-on-android/(dead链接) UPDATE:更好的答案是明显的在这里: <一href="http://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https/6378872#6378872">Trusting使用HttpClient的所有证书通过HTTPS

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

或做具体的事情你HttpClient的版本: <一href="http://stackoverflow.com/questions/2308774/httpget-with-https-sslpeerunverifiedexception">HttpGet使用HTTPS:SSLPeerUnverifiedException

Or do things specific to your HttpClient version: HttpGet with HTTPS : SSLPeerUnverifiedException

这篇关于没有同行证书。不知道采取哪条路线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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