Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1784

TLS Client Hello is always TLS 1.0 (0x0301) under IBM Java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 4.5.2
    • None
    • HttpClient (classic)
    • IBM Java, many versions including latest Java 8.

    Description

      A simple client program fails to connect to any site that requires TLSv1.2. The attached ApacheGet.java program, run with org.apache.httpcomponents/httpclient version 4.5.2 and given the URL https://www.sandbox.paypal.com fails with:

      javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

      when run on the latest released IBM Java, pxa6480sr3fp12-20160919_01(SR3 FP12) (available in a Docker image ibmcom/ibmjava:8-sdk). The same run is successful on a recent Oracle Java 8.

      The similar, simple, Get.java program that uses the built-in Java libraries instead of Apache HttpClient works fine on both IBM Java and Oracle Java.

      Attachments

        1. ApacheGet.java
          0.7 kB
          Bruce Adams
        2. FluentGet.java
          0.3 kB
          Bruce Adams
        3. Get.java
          0.6 kB
          Bruce Adams

        Activity

          People

            Unassigned Unassigned
            bruceadams Bruce Adams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: