camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From salemi <sal...@avaya.com>
Subject Re: http client - javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
Date Wed, 14 Jan 2015 22:37:10 GMT
Thank you for your respond.

Below is how it can be done.

public MyHttpClientConfigurer implements HttpClientConfigurer{

void configureHttpClient(org.apache.http.impl.client.HttpClientBuilder
clientBuilder){
  SSLContext sslContext = SSLUtilityFactory.createSSLContext(); 
  clientBuilder.setSSLContext(sslContext);
}


<bean id="myHttpClientConfigurer" class="MyHttpClientConfigurer"/>

 
<to
uri="https4://myhostname.com:443/myURL?httpClientConfigurer=myHttpClientConfigurer"/>



-----
Alireza Salemi
--
View this message in context: http://camel.465427.n5.nabble.com/http-client-javax-net-ssl-SSLHandshakeException-Received-fatal-alert-handshake-failure-tp5761469p5761706.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message