jnrsdirect.blogg.se

Apache tomcat 8 tls support
Apache tomcat 8 tls support







apache tomcat 8 tls support

In the example above, the prepareSocket method first gets the remote hostname that the SSLSocket will connect to. It's also possible to enable support for older TLS versions, but only if the remote host has a specific subdomain: SSLConnectionSocketFactory sslsf = new void prepareSocket(SSLSocket socket) ) ĬloseableHttpClient httpClient = HttpClients.custom().setSSLSocketFactory(sslsf).build() This will let us decide which TLS protocols to use on a per-connection basis. The client calls the prepareSocket method before it initiates a new connection. We'll extend the SSLConnectionSocketFactory and override the prepareSocket method.

apache tomcat 8 tls support

It's also possible to set the TLS version based on connection details such as hostname and port.









Apache tomcat 8 tls support