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

SSLSocketFactory.createSSLContext does not process trust store

    XMLWordPrintableJSON

Details

    Description

      org.apache.http.conn.ssl.SSLSocketFactory.createSSLContext() does not process a provided trust store.
      Only the default (cacerts) is processed. An additional provided trust store is ignored.
      Adding the "trusted" certificate to the keystore, the peer is authenticated.

      Eventually
      tmfactory.init(keystore);
      needs to be
      tmfactory.init(truststore);

      Attachments

        Activity

          People

            Unassigned Unassigned
            aschmid Angela Schmid
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: