Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 04FFE105CC for ; Thu, 30 Jan 2014 13:30:46 +0000 (UTC) Received: (qmail 9020 invoked by uid 500); 30 Jan 2014 13:30:14 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 8897 invoked by uid 500); 30 Jan 2014 13:30:12 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 8164 invoked by uid 99); 30 Jan 2014 13:30:10 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jan 2014 13:30:10 +0000 Date: Thu, 30 Jan 2014 13:30:10 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HTTPCLIENT-1454) Allow use of multiple SSLContexts with single instance of HttpClient MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCLIENT-1454. ------------------------------------------- Resolution: Fixed Patch committed to SVN trunk. Oleg > Allow use of multiple SSLContexts with single instance of HttpClient > -------------------------------------------------------------------- > > Key: HTTPCLIENT-1454 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1454 > Project: HttpComponents HttpClient > Issue Type: Improvement > Components: HttpConn > Reporter: Cservenak, Tamas > Fix For: 4.4 Alpha1 > > Attachments: HTTPCLIENT-1454.patch > > > Goal: using differently set up SSLContexts for same (shared) HttpClient instance, that should be used by some set of (application specific) conditions. Currently (and even before 4.3, this stands for 4.2 and older clients too), only one ConnectionSocketFactory (or it's older equivalent) might be used for connection manager. In some applications this might be not enough, as while sharing httpClient is desired, it's not possible to have an instance being set up using multiple SSLContexts (contexts being set up in vastly different ways, like one allowing self signed certs. one using it's own controlled trust material, and one using default JVM trust material for example). > The new PoolingHttpClientConnectionManager (introduced in 4.3) should be improved to allow this kind of "selection" without mangling the schema of the accessed URIs (like using "https-weak://host/foo" and registering proper ConnectionSocketFactory for given schema). > Before, this was possible as HttpClientConnectionOperator was exposed, but not anymore in 4.3.x. > Frankly, the HttpClientConnectionOperator solution seemed "cleaner" to me, but a possible solution might be drafted in PR below: > https://github.com/apache/httpclient/pull/9 -- This message was sent by Atlassian JIRA (v6.1.5#6160) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org