HttpClient 4.5 does not use the WebSphere 7 truststore

2017-05-18 Thread Jonathan Barbero
Hi, I'm using the version 4.5 of HttpClient on a servlet in a WAS 7 calling to another WAS 7. When I test the call with http protocol everything works. But when I try with https the call fails because "Chaining certificate error", the certificate of the CA is not recognized as trusted. The CA

Re: Async client with self signed certificate

2017-05-18 Thread Gary Gregory
You can remove most of this boilerplate if use use the SslContextBuilder class. Gary On May 18, 2017 11:48 AM, "Joan Balagueró" wrote: > Hello, > > > > I’ve been using SSL with client authentication with signed certificates in > async http client 4.1, with no

Re: Async client with self signed certificate

2017-05-18 Thread Hassan Khan
Hi, This is a issue with the CA certs... SSL handshake is failing... if java turn on ssl debug... you will see the error in detail... But if you have added the cacert to the java cacert files.. then java should recognize the self signed cert.. This is not a code issue.. it more to do with cert

Async client with self signed certificate

2017-05-18 Thread Joan Balagueró
Hello, I’ve been using SSL with client authentication with signed certificates in async http client 4.1, with no problem. My code is: FileInputStream fKeyStore = new FileInputStream(new File(keyStoreLocation)); KeyStore keyStore = KeyStore.getInstance(keyStoreType);

Re: HttpCacheStorage#getEntry called twice on cache hit

2017-05-18 Thread Leandro Nunes
Hi, I created this (https://github.com/apache/httpcomponents-client/pull/77) pull request with a simple possible solution to this problem. It would be awesome if you could please take a look and validate whether the proposed fix valid or not. I’m more than happy to change whatever you think is

Re: Upgrading from Httpclient 3.1 to 4.5 - localhost:443 not responding

2017-05-18 Thread Hassan Khan
You are right.. Thanks.. It was kinda of a wrong question to ask ... On Thu, May 18, 2017 at 3:35 AM, Oleg Kalnichevski wrote: > On Wed, 2017-05-17 at 12:55 -0400, Hassan Khan wrote: > > Thank oleg for the tip.. > > > > I did not change the connector till now.. but with APR

Re: Upgrading from Httpclient 3.1 to 4.5 - localhost:443 not responding

2017-05-18 Thread Oleg Kalnichevski
On Wed, 2017-05-17 at 12:55 -0400, Hassan Khan wrote: > Thank oleg for the tip.. > > I did not change the connector till now.. but with APR itself I > starting > using the prod CA certificate that our company has... instead of the > self > signed certificate... > > With httpClient 3.1 all