I have used a custom ssl context in Apache httpClient to turn on TLSv1.2 in Java 7 (not on by default), so you should be able to turn it on in CXF. In Java 8, it should use it by default. I would try using the
TLSv1.2
as the parameter if your using the configuration.
If that doesn't work, you could try using a custom SSL factory.
// enable tls v1.1 and v1.2 on JRE 7
String jreVersion = System.getProperty("java.version");
if (jreVersion.startsWith("1.7")){
try {
SSLContext sslcontext = SSLContexts.custom().build();
// Allow TLSv1.1 and 1.2 protocol only
SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslcontext,
new String[] { "TLSv1.1", "TLSv1.2" }, null,
SSLConnectionSocketFactory.getDefaultHostnameVerifier());
customClient.setSSLSocketFactory(sslsf); // set the httpClient custom factory
} catch (KeyManagementException | NoSuchAlgorithmException e) {
e.printStackTrace();
throw e;
}
}
Getting CXF to use the custom socket factory has been answered on this SO question