Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1029

Bug in HTTP BC when configuring managed keystore for SSL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.1
    • 3.1.2, 3.2
    • servicemix-http
    • None
    • ServiceMix deployed on Windows XP

    Description

      The problem is that ServiceMixSslSocketConnector extends SslSocketConnector, and it is providing its own data member and getter/setter for the trust store, named "trustStore". However, SslSocketConnector already declares a data member and getter/setter for the trust store, named "_truststore".

      The bug is manifested in JettyContextManager.createServer(URL url, SslParameters ssl) method, when the "managed=true" is included in your SslParameters. The initialization of the ServiceMixSslSocketConnector calls "setTruststore" method which sets the "_truststore", eventually, there is a call to ServiceMixSslSocketConnector.createFactory() method, and in its implementation, it passes in the value of the "trustStore" that has never been set, instead of the value of "_truststore".

      This bug is affecting the option of having a managed trust store for SSL.

      Attachments

        1. ServiceMixSslSocketConnector.patch
          0.5 kB
          Martin Krasser

        Activity

          People

            gnodet Guillaume Nodet
            willfranco Will Franco
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: