pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Marc-André Laverdière <marc-andre@atc.tcs.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Support for cert auth in JDBC
Date: Thu, 19 May 2011 16:28:17 +0800
Message-ID: <4DD4D4A1.70507@postnewspapers.com.au> (raw)
In-Reply-To: <4DD4D0B0.5040000@atc.tcs.com>
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>

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



view thread (28+ messages)  latest in thread

Message-ID: <4DD4D4A1.70507@postnewspapers.com.au>
Permalink:  ../4DD4D4A1.70507@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4DD4D4A1.70507@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, marc-andre@atc.tcs.com
  Subject: Re: Support for cert auth in JDBC
  In-Reply-To: <4DD4D4A1.70507@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> <4DD4B187.6080002@postnewspapers.com.au> <4DD4BB85.4070300@atc.tcs.com> <4DD4C67B.5070809@postnewspapers.com.au> <4DD4D0B0.5040000@atc.tcs.com> <4DD4D4A1.70507@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