Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 C391318E95 for ; Wed, 24 Feb 2016 10:37:48 +0000 (UTC) Received: (qmail 76121 invoked by uid 500); 24 Feb 2016 10:37:48 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 76066 invoked by uid 500); 24 Feb 2016 10:37:48 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 76053 invoked by uid 99); 24 Feb 2016 10:37:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2016 10:37:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 716E3C04EC for ; Wed, 24 Feb 2016 10:37:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.198 X-Spam-Level: X-Spam-Status: No, score=0.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 9gCkJ3TKl41Z for ; Wed, 24 Feb 2016 10:37:46 +0000 (UTC) Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 9B24C5F1EB for ; Wed, 24 Feb 2016 10:37:45 +0000 (UTC) Received: by mail-io0-f173.google.com with SMTP id l127so30237142iof.3 for ; Wed, 24 Feb 2016 02:37:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=sEjMIC5Htzkj2M0hneoe0d+egAg0wOsnfrMtyShQzvA=; b=G8nubn9cDYR1Akow0/qOG0OlvJv5ouWyTTtv/ikRuPEKeyKODxmiySYrIapBPvhUpD DmRkdjEjgfUovF48ApoMIoTc/zZtlZVpiUCeVo4eX8o+uKz3znqsiD3cceX6/NUSOpOf WTQytQvxur6FOSFkdSW8wAdXBuLeYtzZ2XLFNrkqH9VPSDuixAd3QSw+KxwB4F+bMh6g NZru4XW6W2ycuYC/jK2czRNUen/DyCxUqlvU3180bcldLXGoibIUti0dheErpqHG6keI MNX+Awy5Q8XlcFEmEg3llfzYegqiIn7Yzef7JsHROQBY4ZCqva3ZBdq7ag7hVngM/bh+ X4nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=sEjMIC5Htzkj2M0hneoe0d+egAg0wOsnfrMtyShQzvA=; b=hKo8gzVhrItZvSYwYAm3H55Vc5ZHUkhX2O2LuxA9Ltj3qwhjycAnRGXRUR/XpFJb12 1o7ITq5NSAxb9BiNKo8rY1YzW1B9t0OBnRBWSatI4NJ3Nq2ByxoJ1r2Q35iRvi+y2deW xIr9GGwP1T3NfV/ssRfWFWxxSnixGhC/KBKRQ2bIIol3sSH6WzIm9OOkZUsfWNhgCHLt zjuzuog0QCdj3+3yMeHTk7hkaZ67/+iH7RvuDBC/ihhHQc9OksF14qXbto4Y/gCm16e+ Oxn2aqMhKL/kNb/zd7k81j4EVmg72BZGHeAfg8soEykDkKcdN+fTrd+IqKv+BYyG0TFk 0Tlg== X-Gm-Message-State: AG10YOQslTrmGqYm1woAgFhew0OBh06PDKBFAY3nwDb11O6J2iif/oX3TO4ORuQiMlbO0AzY2eGTmWw6Lrd5bA== X-Received: by 10.107.26.66 with SMTP id a63mr13698401ioa.137.1456310264631; Wed, 24 Feb 2016 02:37:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.0.211 with HTTP; Wed, 24 Feb 2016 02:37:25 -0800 (PST) In-Reply-To: <56CD864D.1020405@gmail.com> References: <56CB1394.7090801@gmail.com> <56CD864D.1020405@gmail.com> From: Claus Ibsen Date: Wed, 24 Feb 2016 11:37:25 +0100 Message-ID: Subject: Re: How do I access the SNI extension in HTTP4? To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 The javadoc for that SNI says its since java 1.8. But take a 2nd look to be sure. Yeah I would assume somewhere with that configurer you can control all yourself. You may want to peak in the source of camel-http4 what happens and to give you an idea how to setup the security. You can of course also look at the http4 docs itself as that ought to help as well. On Wed, Feb 24, 2016 at 11:30 AM, Ioannis Mavroukakis wrote: > Thanks Claus, isn't this a Java 7 feature though? > > I'm ok to try to do this manually, is the SSLContext something I could get > to from HttpClientConfigurer? > >> Claus Ibsen >> 24 February 2016 at 09:26 >> Hi >> >> I logged a ticket to get this support in Camel when we are Java 8+ >> https://issues.apache.org/jira/browse/CAMEL-9638 >> >> Not sure how you do this today, but you likely need to setup all this >> a bit manually and hook into http4 as a SslContext or something. >> >> On Mon, Feb 22, 2016 at 2:56 PM, Ioannis Mavroukakis >> >> >> >> Ioannis Mavroukakis >> 22 February 2016 at 13:56 >> >> Hello everyone. >> >> I've been banging my head against a brick wall trying to figure out a way >> to configure SNI on the http4 component. >> >> According to >> https://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/JSSERefGuide.html#SNIExtension >> the way to do it is as follows (emphasis, mine) >> >> >> For the life of my however, I cannot figure out a way to do this, either >> via the DSL (preferable) or programmatically. With respects to the >> programmatic configuration, should I be using HttpClientConfigurer ? >> >> TIA, >> >> Ioannis >> > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2