Forum Stats

  • 3,875,495 Users
  • 2,266,929 Discussions
  • 7,912,231 Comments

Discussions

IO Error: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

User_H05LT
User_H05LT Member Posts: 2 Green Ribbon

Hi,

When trying to connect to Oracle DBMS on TLS 1.0, I am getting below error:

java.sql.SQLRecoverableException: IO Error: No appropriate protocol (protocol is disabled or cipher suites are inappropriate), Authentication lapse 0 ms.

    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:878) ~[ojdbc10-19.3.0.0.jar:19.3.0.0.0]

    at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:793) ~[ojdbc10-19.3.0.0.jar:19.3.0.0.0]

    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:57) ~[ojdbc10-19.3.0.0.jar:19.3.0.0.0]

    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:747) ~[ojdbc10-19.3.0.0.jar:19.3.0.0.0]

    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:562) ~[ojdbc10-19.3.0.0.jar:19.3.0.0.0]

Please Note: I have already enabled TLS1 from java security. I am also passing following:

oracle.net.ssl_version: 1.0

Its working on my local system but failing on our QA server. Any pointers would be highly appreciated.

Thank you.

Regards,

Zaid

Tagged:

Answers

  • User_CTCZS
    User_CTCZS Member Posts: 17 Red Ribbon

    Please provide more details about Your local system and QA server: OS version, Java version, attach java.security file.

  • User_H05LT
    User_H05LT Member Posts: 2 Green Ribbon

    Thank you for your response.

    1] We are enabling TLS1 at runtime using below code:

    String jdkTLSDisabledAlgorithms = Security.getProperty("jdk.tls.disabledAlgorithms");

    Security.setProperty(JDK_TLS_DISABLED_ALGORITHMS_KEY,

    jdkTLSDisabledAlgorithms.replace("TLSv1.1", "").replace("TLSv1", ""));

    2] My laptop is running on Windows 10. QA is using kubernetes with Java 11.