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 166569AC0 for ; Mon, 9 Jan 2012 21:50:55 +0000 (UTC) Received: (qmail 52810 invoked by uid 500); 9 Jan 2012 21:50:54 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 52771 invoked by uid 500); 9 Jan 2012 21:50:53 -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 52763 invoked by uid 99); 9 Jan 2012 21:50:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2012 21:50:53 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.mueller@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2012 21:50:47 +0000 Received: by qcsd15 with SMTP id d15so2681987qcs.32 for ; Mon, 09 Jan 2012 13:50:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=QIMi5MXJZNPWpIRxKg+WOE88MibE4/3PQrJjjEkEqVg=; b=aqBvSayUV3HbX6WokXBaJUDrfFcMNPaN9CUV09UmmSZeyG8Ssl7iLz14sgQV5NNhOq 4YgtFnKcTV9FnDtOSeOUrz88BGSn1+1uT/JKa7PHK0fTI1nnZj/FkcZE21RvwZRJ+Kmb dNTyt3jqXljyLJl9g8DqGN/zZgu1L0wYRJWd0= MIME-Version: 1.0 Received: by 10.224.76.207 with SMTP id d15mr3933621qak.58.1326145826378; Mon, 09 Jan 2012 13:50:26 -0800 (PST) Received: by 10.229.250.2 with HTTP; Mon, 9 Jan 2012 13:50:26 -0800 (PST) In-Reply-To: <1326122884425-5131544.post@n5.nabble.com> References: <1326122884425-5131544.post@n5.nabble.com> Date: Mon, 9 Jan 2012 22:50:26 +0100 Message-ID: Subject: Re: Using the x509HostnameVerifier option in http4 From: =?ISO-8859-1?Q?Christian_M=FCller?= To: users@camel.apache.org Content-Type: multipart/alternative; boundary=20cf3074b690e6d43a04b61f62f4 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3074b690e6d43a04b61f62f4 Content-Type: text/plain; charset=ISO-8859-1 Hello Xavier! Could you share the Code how you set the host name verifier into the registry? You should do it as below: https://svn.apache.org/repos/asf/camel/trunk/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpsGetTest.java And of course, you can do it also with Spring. The bean id has to be used as value for the 'x509HostnameVerifier' option.... Best, Christian On Mon, Jan 9, 2012 at 4:28 PM, xverges wrote: > I'm trying to use the x509HostnameVerifier option in an http4 uri > > from("jetty:https://0.0.0.0:4433/topython/?matchOnUriPrefix=true") > .to("https4:// > backend.fake.com:4444/?&bridgeEndpoint=true&throwExceptionOnFailure=false&x509HostnameVerifier=AllowAllHostnameVerifier > "); > > but I'm getting an error > > No bean could be found in the registry for: AllowAllHostnameVerifier of > type: org.apache.http.conn.ssl.X509HostnameVerifier > > Am I doing something wrong? I'm on version 2.9.0 > > Thanks in advance. > -Xavier > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-the-x509HostnameVerifier-option-in-http4-tp5131544p5131544.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --20cf3074b690e6d43a04b61f62f4--