Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-398

org.apache.http.ssl.SSLContextBuilder does not have useTLS() anymore, but the tutorial says it does

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.4.1
    • None
    • Documentation
    • None

    Description

      http://hc.apache.org/httpcomponents-client-4.4.x/tutorial/html/connmgmt.html

      SSLContext sslContext = SSLContexts.custom()
              .useTLS()
              .loadTrustMaterial(myTrustStore)
              .build();
      

      However, this does not work in 4.4.1.

      Attachments

        Activity

          People

            Unassigned Unassigned
            the_alchemist The Alchemist
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: