Re: Can't get org.apache.http.conn.ssl.TrustSelfSignedStrategy to work

2017-02-18 Thread Gary Gregory
On Sat, Feb 18, 2017 at 2:06 AM, Oleg Kalnichevski wrote: > On Fri, 2017-02-17 at 12:56 -0800, Gary Gregory wrote: > > Hi All, > > > > I cannot seem to get org.apache.http.conn.ssl.TrustSelfSignedStrategy > > to > > work with an SSL connection. > > > > I am creating the HttpClient (4.5.3, the lat

Re: Can't get org.apache.http.conn.ssl.TrustSelfSignedStrategy to work

2017-02-18 Thread Oleg Kalnichevski
On Fri, 2017-02-17 at 12:56 -0800, Gary Gregory wrote: > Hi All, > > I cannot seem to get org.apache.http.conn.ssl.TrustSelfSignedStrategy > to > work with an SSL connection. > > I am creating the HttpClient (4.5.3, the latest) like so: > > final PoolingHttpClientConnectionManager cm = n

Re: Can't get org.apache.http.conn.ssl.TrustSelfSignedStrategy to work

2017-02-17 Thread Gary Gregory
I should also tried a custom class and it did not work either and it was never called either. public class AcceptAllTrustStrategy implements TrustStrategy { @Override public boolean isTrusted(X509Certificate[] chain, String authType) { return true; } } Gary On Fri, Feb 17,

Can't get org.apache.http.conn.ssl.TrustSelfSignedStrategy to work

2017-02-17 Thread Gary Gregory
Hi All, I cannot seem to get org.apache.http.conn.ssl.TrustSelfSignedStrategy to work with an SSL connection. I am creating the HttpClient (4.5.3, the latest) like so: final PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager(); httpClient = HttpClientF