Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
-
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!