i created a wrapper around WebClient to solve this problem. I have not
checked recently whether it is still necessary in TomEE 7.0.5
// TODO this should not be necessary in java 9
//
http://cxf.547215.n5.nabble.com/Custom-SSLSocketFactory-td5741482.html
//
http://stackoverflow.com/questions/30817934/extended-server-name-sni-extension-not-sent-with-jdk1-8-0-but-send-with-jdk1-7
private void webClientSslSocket() {
HTTPConduit httpConduit =
WebClient.getConfig(webClient).getHttpConduit();
if (httpConduit.getTlsClientParameters() != null) {
httpConduit.getTlsClientParameters().setSSLSocketFactory(new
SSLSocketFactoryFacade());
} else {
TLSClientParameters tlsCP = new TLSClientParameters();
tlsCP.setSSLSocketFactory(new SSLSocketFactoryFacade());
httpConduit.setTlsClientParameters(tlsCP);
}
}
On 11/09/18 10:01, [email protected] wrote:
Hi Chris,
I have to set SNI hostname while making rest call using CXF client 3.1.2.
I'm not able to find any configuration for this. Can you please help me how
to set SNI name using CXF client. I'm able to do the same using HTTP client.
--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html