Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11784

Could not disable the tlsv1 and tlsv1.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • camel-jetty
    • None
    • Unknown

    Description

      Hi,

      I tried to use below code to disable the weak TLS version, such as TLSv1.1 TLSv1 and SSLv3, only left TLSv1.2, but it does not work

              JettyHttpComponent jettyComponent =
                  getContext().getComponent("jetty", JettyHttpComponent.class);
              SslSelectChannelConnector sslConnector = new SslSelectChannelConnector();
              SslContextFactory sslFactory = sslConnector.getSslContextFactory();
               ..........
      
              SSLContextParameters sslContextParameters = new SSLContextParameters();
              SecureSocketProtocolsParameters secureSocketProtocols = new SecureSocketProtocolsParameters();
              secureSocketProtocols.getSecureSocketProtocol().add("TLSv1.2");
              sslContextParameters.setSecureSocketProtocols(secureSocketProtocols);
      
              jettyComponent.setSslContextParameters(sslContextParameters);
              jettyComponent.setSslSocketConnectors(connectors);
              from("jetty:https://0.0.0.0:343/eastweb/")
      

      Could you help to have a support? thanks!

      Attachments

        Activity

          People

            Unassigned Unassigned
            zzd183816 East
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: