IBM Support

IT38282: CONNECTING WITH SSL CAN THROW "ILLEGALARGUMENTEXCEPTION: TLSV1.3"

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Setting up a connection with
    
    "jdbc:informix-sqli://machine:12345/sysmaster:informixserver=tes
    t_ssl;user=myuser;password=mypassword;";
    
    Properties prop = new Properties();
    prop.put("SSL_TRUSTSTORE", "<keystore path>");
    prop.put("SSL_TRUSTSTORE_PASSWORD", "<password>");
    prop.put("SSLCONNECTION", "true");
    
    can fail with:
    
    Socket connection to server (test_ssl@machine:12345) failed.
    Check your server is reachable from this client on the host:port
    specified.
    java.sql.SQLException: Socket connection to server
    (test_ssl@machine:12345) failed. Check your server is reachable
    from this client on the host:port specified.
            at
    com.informix.jdbc.IfxSqliConnect.<init>(IfxSqliConnect.java:1536
    )
            at
    com.informix.jdbc.IfxDriver.connect(IfxDriver.java:167)
            at
    java.sql.DriverManager.getConnection(DriverManager.java:664)
            at
    java.sql.DriverManager.getConnection(DriverManager.java:208)
            at TestJdbc.main(TestJdbc.java:40)
    Caused by: com.informix.asf.IfxASFException: Socket connection
    to server (test_ssl@machine:12345) failed. Check your server is
    reachable from this client on the host:port specified.
            at
    com.informix.util.IfxErrMsg.getLocIfxASFException(IfxErrMsg.java
    :585)
            at
    com.informix.asf.Connection.openSocket(Connection.java:1684)
            at
    com.informix.asf.Connection.connect(Connection.java:333)
            at
    com.informix.asf.Connection.<init>(Connection.java:327)
            at
    com.informix.jdbc.IfxSqliConnect.<init>(IfxSqliConnect.java:1261
    )
            ... 4 more
    Caused by: java.lang.IllegalArgumentException: TLSv1.3
            at
    sun.security.ssl.ProtocolVersion.valueOf(ProtocolVersion.java:18
    7)
            at
    sun.security.ssl.ProtocolList.convert(ProtocolList.java:84)
            at
    sun.security.ssl.ProtocolList.<init>(ProtocolList.java:52)
            at
    sun.security.ssl.SSLSocketImpl.setEnabledProtocols(SSLSocketImpl
    .java:2538)
            at
    com.informix.asf.Connection.openSocket(Connection.java:1629)
            ... 7 more
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of Informix JDBC prior to 4.50.JC7.                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Informix JDBC 4.50.JC7.                           *
    ****************************************************************
    

Problem conclusion

  • Fixed in Informix JDBC 4.50.JC7.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT38282

  • Reported component name

    IBM CSDK

  • Reported component ID

    5724C2381

  • Reported release

    450

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-09-07

  • Closed date

    2021-11-02

  • Last modified date

    2021-11-02

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    IBM CSDK

  • Fixed component ID

    5724C2381

Applicable component levels

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVT2J","label":"Informix Tools"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"450"}]

Document Information

Modified date:
03 November 2021