ibm-bluemix-mobile-services / bms-pushnotifications-serversdk-java

IBM Cloud Mobile Services - Server side Java SDK for IBM Cloud Push Notifications Service
Apache License 2.0
3 stars 6 forks source link

javax.net.ssl.SSLHandshakeException occurs. #33

Closed Daiki-Kawanuma closed 5 years ago

Daiki-Kawanuma commented 6 years ago

Since March 1, 2018, IBM Cloud invalidated TLS 1.0, TLS 1.1, and activated TLS 1.2 only. As a result, using this SDK with IBM Java, "javax.net.ssl.SSLHandshakeException" now occurs.

This is discussed at the following URL. https://issues.apache.org/jira/browse/HTTPCLIENT-1784

Is it possible to repair to explicitly use TLS 1.2?

Daiki-Kawanuma commented 6 years ago

This code works for me. IBM JDK: 1.8 WAS: 17.0.0.2 Liberty

SSLContext sslContext = SSLContexts.custom()
        .useProtocol("SSL_TLSv2")
        .build();

CloseableHttpClient httpclient = HttpClients.custom()
        .setSSLContext(sslContext)
        .build();
techiemanas commented 6 years ago

I am also facing this issue, Using IBM JDK 7, Expecting a quick fix

ManavIBM commented 5 years ago

TLS1.2 included as part of latest release 1.5.0. Closing the issue.