users@tyrus.java.net

Re: SSL handshake failures with Android 5.0

From: Matthew Mah <matthew.y.mah_at_gmail.com>
Date: Fri, 16 Jan 2015 18:43:13 -0500

Could you please elaborate on how this can be done?

 From the documentation,
https://tyrus.java.net/apidocs/1.9/org/glassfish/tyrus/client/ClientManager.htm

I am not sure whether to set WLS_SSL_PROTOCOLS_PROPERTY or the
ClientProperties.SSL_ENGINE_CONFIGURATOR. It is also not apparent what
String or array of Strings to use.

https://tyrus.java.net/apidocs/1.9/org/glassfish/tyrus/client/SslEngineConfigurator.html#setEnabledProtocols(java.lang.String[])

Thanks,
Matt

On 01/16/2015 05:59 PM, Salatiel Filho wrote:
>
> Try disable tlsv1.2 And check if it works.
>
> On Jan 16, 2015 5:04 PM, "Matthew Mah" <matthew.y.mah_at_gmail.com
> <mailto:matthew.y.mah_at_gmail.com>> 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
>