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: Wed, 18 May 2011 22:03:28 +0800
Message-ID: <4DD3D1B0.90602@postnewspapers.com.au> (raw)
In-Reply-To: <4DD379C5.1030703@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>

Oh, also, your code has a simple thinko or copy-n-paste bug. On line 79:

fInTrustStore = new FileInputStream(keyPath);

should read:

fInTrustStore = new FileInputStream(trustPath);

Currently, trustPath never escapes the method and is effectively unused; 
it's only tested for null/empty, then ignored.

--
Craig Ringer



view thread (28+ messages)  latest in thread

Message-ID: <4DD3D1B0.90602@postnewspapers.com.au>
Permalink:  ../4DD3D1B0.90602@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4DD3D1B0.90602@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: <4DD3D1B0.90602@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> <4DD3D1B0.90602@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