vimeo / vimeo-networking-java

The Vimeo Java (Android) SDK
MIT License
121 stars 49 forks source link

Getting javax.net.ssl.SSLProtocolException Error #369

Closed ashish-tribyss closed 5 years ago

ashish-tribyss commented 5 years ago

Issue Summary

javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x654f7030: Failure in SSL library, usually a protocol error error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version (external/openssl/ssl/s23_clnt.c:741 0x5d6becfc:0x00000000)

I'm using this code to get video lists VimeoClient.getInstance().fetchNetworkContent(STAFF_PICKS_VIDEO_URI, new ModelCallback(VideoList.class) { @Override public void success(VideoList videoList) {

        }

        @Override
        public void failure(VimeoError error) {
            Log.e("vimeo error", error.getDeveloperMessage());
        }
    });

I'm testing it on tablet Android 4.4.4 API19

msya commented 5 years ago

@ashish-tribyss There are two possible scenarios causing this problem. First, the device may not have TLS 1.2 installed at all. Second, the device has it installed but it is not enabled by default. In devices running API 16-19, it is not enabled by default.

In order to resolve this issue, here is an article that provides steps and code in detail

https://medium.com/tech-quizlet/working-with-tls-1-2-on-android-4-4-and-lower-f4f5205629a. https://gist.github.com/ankushg/8c0c3144318b1c17abb228d6211ba996

You could provide a custom interceptor to Configuration to enable TLS 2.0 as shown in the links above. We are working on providing this in the SDK itself. Please let me know if that addresses your issue.

msya commented 5 years ago

Closing this issue. If you have any follow ups, please let us know.

ashish-tribyss commented 5 years ago

Hi any update on this issue. I'm unable to use your refrence because it's in kotlin.