pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Kris Jurka <books@ejurka.com>
Cc: Marc-André Laverdière <marc-andre@atc.tcs.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Support for cert auth in JDBC
Date: Wed, 25 May 2011 09:39:57 +0800
Message-ID: <4DDC5DED.7010903@postnewspapers.com.au> (raw)
In-Reply-To: <alpine.BSO.2.00.1105241222120.31060@leary.csoft.net>
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>
	<alpine.BSO.2.00.1105181130380.13086@leary.csoft.net>
	<4DD4AED1.2080008@postnewspapers.com.au>
	<4DD4B535.1050707@atc.tcs.com>
	<4DDB3A6A.3000608@atc.tcs.com>
	<alpine.BSO.2.00.1105241222120.31060@leary.csoft.net>

On 25/05/11 00:27, Kris Jurka wrote:
> 
> 
> On Tue, 24 May 2011, Marc-Andr? Laverdi?re wrote:
> 
>> It is not over... It is not in the CVS repository yet :D
>>
>> What would be the next step?
> 
> It was not clear to me that the discussion between you and Craig had
> resulted in a final code version.  Apparently you think so.  Craig do
> you concur?

I'm happy with the state of the code, but should really test it properly
before signing off on that. In particular, I need to test PKCS#12 cert
files and test a JECKS keystore containing multiple keys only one of
which is valid to access Pg.

On the other hand, I'm swamped at the moment and unsure if I'll get to
that in a reasonable amount of time. The tests Marc-André wrote
demonstrate the core functionality pretty well, and the code would be
good to get into the official codebase to save others from duplicating
the same work over and over as both Marc-André and I have each done already.

Argh. I'm going to have to come back to that, as I have a backup server
to fix. Maybe it's best if you have a look and see what you think of it,
while I try to find some time to do some more testing.

> Perhaps some documentation updates
> would be in order, but I haven't looked at the code yet to know what
> might be appropriate.

Some documentation updates are definitely in order, to sit alongside the
existing documentation for the non-validating ssl factory.


By the way, I _do_ think it'd be useful to add support for constructing
the socket factory with:

  FactoryClass(String arg, Properties jdbcProperties)

... where the properties argument contains all the Pg JDBC properties
like the user name and password. It'd make it easier for apps to pass
custom args into a socket factory, especially things like the password
to the user's private key that they don't want to have to put in the
sslocketfactoryarg string.

I could also then produce a second version of the cert factory for
people to use that got all its settings from the jdbc connection
properties instead of the sytem properties.

I wouldn't suggest adding that now, though, but maybe as a revision once
the working code is already committed.

--
Craig Ringer



view thread (28+ messages)  latest in thread

Message-ID: <4DDC5DED.7010903@postnewspapers.com.au>
Permalink:  ../4DDC5DED.7010903@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4DDC5DED.7010903@postnewspapers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: craig@postnewspapers.com.au, books@ejurka.com, marc-andre@atc.tcs.com
  Subject: Re: Support for cert auth in JDBC
  In-Reply-To: <4DDC5DED.7010903@postnewspapers.com.au>
  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> <alpine.BSO.2.00.1105181130380.13086@leary.csoft.net> <4DD4AED1.2080008@postnewspapers.com.au> <4DD4B535.1050707@atc.tcs.com> <4DDB3A6A.3000608@atc.tcs.com> <alpine.BSO.2.00.1105241222120.31060@leary.csoft.net> <4DDC5DED.7010903@postnewspapers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox