Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No peer cert. Not sure which route to take

Tags:

android

https

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?

like image 906
Andrew Avatar asked May 17 '11 18:05

Andrew


1 Answers

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

like image 196
Andrew Avatar answered Oct 03 '22 01:10

Andrew