Android Question Once more "No peer certificate"

KMatle

Expert
Licensed User
Longtime User
Upvote 0

denik

Member
Licensed User
Longtime User
What kind of server is it? (I use SSL without problems). Is the certificate VALID? What about your device?

What does your browser say when you call the server by typing(copying) the parameters/call?
I use SSL without problems too - on other addresses. But in this case certificate not valid (I think)
In browser and in WebView all OK. For example, I can to receive text from this server without HttpUtils2, with WebViewExtras
 
Upvote 0

denik

Member
Licensed User
Longtime User
Experiments have shown that if Android version>=5.01 - all OK, else (4.0.3, 4.4.2) - "No peer certificate"
 
Upvote 0

denik

Member
Licensed User
Longtime User
Worth testing with OkHttpUtils2.
I did. Result approx. the same. It works Android 5.0.1 and error Android 4.4.2 But with OkHttpUtils2 error:
-------------------
javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x55fb7650: Failure in SSL library, usually a protocol error
error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure (external/openssl/ssl/s23_clnt.c:741 0x53bc6cfc:0x00000000)
-------------------
 
Upvote 0
Top