Re: http client - javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

2015-01-14 Thread salemi
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();

Re: http client - javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

2015-01-09 Thread Willem Jiang
You can setup the sslContext by implementing a HttpClientConfigurer[1]. [1]https://camel.apache.org/http4#HTTP4-ConfiguringApacheHTTPClientDirectly -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter:

Re: http client - javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

2015-01-09 Thread salemi
Hi, Thanks for your respond. My problem is that I am running in a container and there is api that return the sslcontext to me and I have to use the provided sslcontext. See the code below. SSLContext sslContext = SSLUtilityFactory.createSSLContext(); How can I tell https4 to use the sslcontext

http client - javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

2015-01-08 Thread salemi
Hi All, I am getting the following exception when I use https4 as followed below: to uri={{https.url}}?authUsername=adminamp;authPassword=Admin01$amp;authMethod=Basicamp;x509HostnameVerifier=allowAllHostnameVerifier/ javax.net.ssl.SSLHandshakeException: Received fatal alert: