Use SDK to Create Session Gets SSL handshake_failure error

(Doc ID 2396537.1)

Last updated on MAY 09, 2018

Applies to:

Oracle Agile PLM Framework - Version 9.3.6.0 and later
Information in this document applies to any platform.

Symptoms

On : 9.3.6.0 version, Software Development Kit

When attempting to create Agile session,
the following error occurs.

ERROR
-----------------------
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at com.agile.common.HttpReader.getInputStream(HttpReader.java:76)
at com.agile.api.AgileSessionFactory.initServerPropertiesFromURL(AgileSessionFactory.java:935)
at com.agile.api.AgileSessionFactory.init(AgileSessionFactory.java:889)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a standalone SDK program to create Agile session, to connect to SSL protected Load Balancer URL
2. Error occurs when run the program



Changes

1. Use OPENSSL to verify Load Balancer required cipther suite:

   openssl s_client -connect agile.mycompany.com:443

Find it requires AES256-GCM-SHA384

2. Take tcp packages from SDK client, find SSL "ClientHello" request does not contain above cipher in cipher list.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms