users@tyrus.java.net

Re: SSL handshake failures with Android 5.0

From: Matthew Mah <matthew.y.mah_at_gmail.com>
Date: Thu, 22 Jan 2015 14:28:15 -0500

On 01/16/2015 03:03 PM, Matthew Mah wrote:
> I am encountering problems connecting Android 5.0 using the tyrus
> websocket to either nginx or tomcat servers using a secure websocket.
>
> javax.websocket.DeploymentException: SSL handshake has failed
>
> The code works fine for Android 4.4 , so I think this is related to
> the SSL changes in Android 5.0:
> http://developer.android.com/about/versions/android-5.0-changes.html#ssl
>
> Is there a way I can tell what exactly is failing? I am not sure
> whether its a problem with the certificate or with the TLS protocol or
> the cipher suites available.
>
> Thanks,
> Matt
I have posted an Android bug report on this issue, which has been accepted:
https://code.google.com/p/android/issues/detail?id=103251

The Google/Android developers suggest there may also be a problem in the
websocket implementation:
https://code.google.com/p/android/issues/detail?id=103251#c10