Sagar
Sagar

Reputation: 1

Error connecting to Gemfire locators with IBM Java 1.8 and Apache Geode 1.15.1 jars

We are working on upgrading Gemfire client - Apache Geode 1.12.1 to Apache Geode 1.15.1.

Java version used is IBM JDK 1.8.0 341 on Linux system.

We are getting fatal alert: protocol version error while connecting to Gemfire locators with 1.15.1 jars.

javax.net.ssl.SSLHandshakeException: Received fatal alert: protocol_version
.
.
at com.ibm.jsse2.bj.startHandshake(bj.java:519) ~[?:8.0 build_20220616-536]
at org.apache.geode.internal.net.SocketCreator.configureClientSSLSocket(SocketCreator.java:535)~[geode-core-1.15.1.jar!/:?]

We tried setting the below properties as suggested on different portals, but it didn't work:

https.protocols=SSLv3,TLSv1,TLSv1.1,TLSv1.2
https.protocols=TLSv1.2
jdk.tls.client.protocols=TLSv1.2

On enabling ssl debug we observed that with apache geode 1.15.1, clientHello message has supported_versions value as TLSv1.3, whereas on using apache geode 1.12.1 ClientHello message has supported_versions as TLSv1.2.

"supported_versions (43)" : {
    "versions": [TLSv1.3]
},

We tried running application using 1.15.1 jars on different machine having Java Oracle Corporation version 1.8.0_321 and Java Oracle Corporation 11 and it was able to connect to Gemfire locators successfully.

Due to dependency we have to use IBM JDK and cannot use Oracle JDK as for now.

Can anyone please suggest if there any way to resolve this issue.

Upvotes: 0

Views: 132

Answers (0)

Related Questions