No peers. Not sure which route to take

I am trying to click https-url with my application. I followed this tutorial . The store I created has the correct CA. However, when I try to establish a connection, I get the following error:

ERROR/IOException(1843): webPost: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate 

I read about this error, and people decided to allow their applications to accept all certificates. I do not think this is really acceptable. What should I check to find out what the problem is?

+6
source share
1 answer

You can set 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: A much better answer can be seen here: Trust all certificates using HttpClient via HTTPS

Or do what suits your version of HttpClient: HttpGet with HTTPS: SSLPeerUnverifiedException

+1
source

Source: https://habr.com/ru/post/888349/


All Articles