Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

SSL issues with new builds #27

Closed
floens opened this issue Oct 25, 2014 · 2 comments
Closed

SSL issues with new builds #27

floens opened this issue Oct 25, 2014 · 2 comments
Labels

Comments

@floens
Copy link
Member

floens commented Oct 25, 2014

After you load 20 threads or so, every load will fail with the following error:

10-25 19:32:40.896    3721-3721/org.floens.chan E/Clover | Loader﹕ Error loading javax.net.ssl.SSLHandshakeException: Handshake failed
    com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: Handshake failed
            at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:134)
            at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:110)
     Caused by: javax.net.ssl.SSLHandshakeException: Handshake failed
            at com.google.android.gms.org.conscrypt.OpenSSLSocketImpl.startHandshake(SourceFile:374)
            at libcore.net.http.HttpConnection.setupSecureSocket(HttpConnection.java:210)
            at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:477)
            at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:441)
            at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:282)
            at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:232)
            at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:273)
            at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:479)
            at libcore.net.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:133)
            at com.android.volley.toolbox.HurlStack.performRequest(HurlStack.java:109)
            at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:93)
            at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:110)
     Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xe2a240: 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:762 0x5e82d485:0x00000000)
            at com.google.android.gms.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
            at com.google.android.gms.org.conscrypt.OpenSSLSocketImpl.startHandshake(SourceFile:302)
            ... 11 more

I've only had it happen on a 4.0 tablet.
Every new build of Clover has this issue.
It seems that the new version from google play services (ssl is handled through gps?) contains a changed crypto lib that has this bug.

@floens floens added the bug label Oct 25, 2014
@floens
Copy link
Member Author

floens commented Oct 25, 2014

The same issue koush/ion#386

@floens
Copy link
Member Author

floens commented Oct 26, 2014

Fixed with using a alternative SSLSocketFactory that removes SSLv3 from the supported protocols
10c5c2b

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant