Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8496AB5DBDC for ; Thu, 19 May 2011 02:47:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 83239-08 for ; Thu, 19 May 2011 05:47:06 +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 B5E24B5DBD4 for ; Thu, 19 May 2011 02:47:06 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id A60014B9; Thu, 19 May 2011 01:47:05 -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 pq-DBVHYSbYl; Thu, 19 May 2011 01:47:05 -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 DED1527; Thu, 19 May 2011 01:47:04 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id D8502AE541; Thu, 19 May 2011 13:47:03 +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 ZgUTQZn+wsdZ; Thu, 19 May 2011 13:46:59 +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 AE62EAE529; Thu, 19 May 2011 13:46:58 +0800 (WST) Message-ID: <4DD4AED1.2080008@postnewspapers.com.au> Date: Thu, 19 May 2011 13:46:57 +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: Kris Jurka CC: =?ISO-8859-1?Q?Marc-Andr=E9_Laverdi=E8re?= , 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> <4DD3C751.5080908@postnewspapers.com.au> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/54 X-Sequence-Number: 21884 On 05/18/2011 11:32 PM, Kris Jurka wrote: > > > On Wed, 18 May 2011, Craig Ringer wrote: > >> Alas the SSLSocketFactory interface doesn't offer any really nice >> options like a way to pass a Properties instance to the ctor, > > That'd be an easy thing to fix, just add another case to > org.postgresql.ssl.MakeSSL#convert to pass through the provided > Properties object. I've thought about that in the past, but with no real > use case, I wasn't in a big rush to do so. OK, good to know. It wasn't a big issue for me in the end, as I landed up fetching my configuration using the String argument form as a key to an application-specific configuration provider. It's much easier to pass a String argument through various layers one often has over the JDBC driver, like an ORM or the like. -- Craig Ringer