Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 9ABD6B5DCEE for ; Thu, 19 May 2011 05:28:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 13350-03-8 for ; Thu, 19 May 2011 08:28:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id DA394B5DBD4 for ; Thu, 19 May 2011 05:28:25 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 8872A4B9; Thu, 19 May 2011 04:28:25 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fVMxhGEQpbeA; Thu, 19 May 2011 04:28:25 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id B758B27; Thu, 19 May 2011 04:28:24 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id AF7B0AEDD1; Thu, 19 May 2011 16:28:23 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ldzfwKRhGz4y; Thu, 19 May 2011 16:28:19 +0800 (WST) Received: from [10.1.1.5] (124-169-254-58.dyn.iinet.net.au [124.169.254.58]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id AEA99AEB11; Thu, 19 May 2011 16:28:18 +0800 (WST) Message-ID: <4DD4D4A1.70507@postnewspapers.com.au> Date: Thu, 19 May 2011 16:28:17 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: =?windows-1252?Q?Marc-Andr=E9_Laverdi=E8re?= CC: pgsql-jdbc@postgresql.org Subject: Re: Support for cert auth in JDBC References: <4DD34FE5.3020609@atc.tcs.com> <4DD35BEA.3020902@postnewspapers.com.au> <4DD361CA.3070907@atc.tcs.com> <4DD36EFC.6070707@postnewspapers.com.au> <4DD379C5.1030703@atc.tcs.com> <4DD4B187.6080002@postnewspapers.com.au> <4DD4BB85.4070300@atc.tcs.com> <4DD4C67B.5070809@postnewspapers.com.au> <4DD4D0B0.5040000@atc.tcs.com> In-Reply-To: <4DD4D0B0.5040000@atc.tcs.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/60 X-Sequence-Number: 21890 On 05/19/2011 04:11 PM, Marc-André Laverdière wrote: > That's good changes. > I'm not super keen on the idea of asking the user of providing the type. > But I'm not gonna fight over that :) So long as the option exists, I'm happy. I think it's a reasonable idea to try to auto-detect it by default. > Now, would you please elaborate on those todos? Whoops, I never meant to send the code to you with those in it. The latter one no longer applies, it's resolved. The first one isn't important for now. The main use case is if you want to add additional trusted certs without "hiding" the system trust database. It's a separate task and now that it's possible to pass your own TrustManager can be done by apps that need it without modifying AbstractCertAuthFactory at all. So both may be removed. Thanks for pointing that out. I'll see if I can put together an example X509TrustManager that tries to verify trust against an app-supplied KeyStore first and failing that against the system store. I have one around that I can adapt, but won't be able to do that immediately as I have to get on with other work. -- Craig Ringer