Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D8C818AEA for ; Wed, 2 Mar 2016 20:41:12 +0000 (UTC) Received: (qmail 91072 invoked by uid 500); 2 Mar 2016 20:41:11 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 91027 invoked by uid 500); 2 Mar 2016 20:41:11 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 91016 invoked by uid 99); 2 Mar 2016 20:41:11 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2016 20:41:11 +0000 Received: from ok2c (77-57-180-136.dclient.hispeed.ch [77.57.180.136]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id C74DF1A003F for ; Wed, 2 Mar 2016 20:41:10 +0000 (UTC) Message-ID: <1456951267.21248.16.camel@apache.org> Subject: Re: HttpClient 4.5.2 and Server Name Indication From: Oleg Kalnichevski To: HttpClient User Discussion Date: Wed, 02 Mar 2016 21:41:07 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit On Wed, 2016-03-02 at 12:37 -0500, Sam Wilson wrote: > Hey httpclient-users, > > I'm trying to get Server Name Indication working in an existing > application, but I'm having some serious trouble. > > The java version is 1.8.0_45. > > I've walked all the way through the HttpClient code to the > sun.security.ssl.SSLSocketImpl.connect call, and I see that HttpClient > is correctly passing the hostname through to the socket connect. > > The paramSocketAddress.toString() returns "www.example.com:443", where > example.com is replaced by the actual SNI host I'm using. > > When I enable -Djavax.net.debug=all, there is no server name extension > listed in the outgoing request. > > Is there anything else I need to do to enable SNI? > No, there is not. Just make sure you are not using deprecated functionality. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org