Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 52450 invoked from network); 8 Jul 2009 23:20:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jul 2009 23:20:33 -0000 Received: (qmail 16392 invoked by uid 500); 8 Jul 2009 23:20:43 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 16320 invoked by uid 500); 8 Jul 2009 23:20:43 -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 16310 invoked by uid 99); 8 Jul 2009 23:20:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 23:20:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bostone@gmail.com designates 209.85.210.196 as permitted sender) Received: from [209.85.210.196] (HELO mail-yx0-f196.google.com) (209.85.210.196) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 23:20:33 +0000 Received: by yxe34 with SMTP id 34so5504917yxe.2 for ; Wed, 08 Jul 2009 16:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=fwh76iVMuY9YAuiHWxrDjLzcGW2lYb2etSC3CfonsBc=; b=a5sGu+25VzsNQLU98a7srMnBgI/0RbBicjwR6d7/u4MdWNpHSHphWMaC+dHJLwYZxR koN7+aVcOVsssZYEgaIp6lX+ofg5MxfRClfMoyW3kUz3ql+0R+RXT92huYEH0GGVir64 3RxUVeRssTeInGLltNj1RrHScaWnQnN+xVXw8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=lZM8wR1qsEJNJfNlCSv2apQO6m0tWrC+y4WlFAiLwNgq+rEc5R5uTZbfH0orZd1hTY OoOqpUt9sLude3CGUwYVysozdgmee1hOWBey+OI2TigtQqu/Ty55p2a5Ov6TWrZ/2iid FkSh1jfqNf9fjpppqtmDOHwxD1svC7gEEd7XQ= MIME-Version: 1.0 Received: by 10.90.99.3 with SMTP id w3mr76498agb.33.1247095211155; Wed, 08 Jul 2009 16:20:11 -0700 (PDT) From: bo Date: Wed, 8 Jul 2009 16:19:51 -0700 Message-ID: <95ec5c290907081619s72a32dc0t7319cc10b7e89aa7@mail.gmail.com> Subject: HttpClient 4 and self-signed certificate To: httpclient-users@hc.apache.org Content-Type: multipart/alternative; boundary=0016362836d60fe1f5046e39fbbb X-Virus-Checked: Checked by ClamAV on apache.org --0016362836d60fe1f5046e39fbbb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Oleg, HttpClient 3 had good examples on how to customize SocketFactory to allow for self-signed certificate. I tried to update these for 4.0 but run into "Unconnected Sockets not implemented" error. All I'm trying to do is to use HttpClient to run very basic POST authentication on the site that has self-signed certificate. Any suggestions or code examples on how to do it in v. 4 would be greatly appreciated Thanks, Bo --0016362836d60fe1f5046e39fbbb--