pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Eric Jain <eric.jain@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: How to ensure that SSL is enabled?
Date: Tue, 27 Oct 2009 05:12:31 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.0910270506510.7676@leary.csoft.net> (raw)
In-Reply-To: <e48479d40910261618o57eb6d93o14f4d5d12bd34b15@mail.gmail.com>
References: <e48479d40910191731y37028537kd239b310a142fd22@mail.gmail.com>
	<1256010332.6437.74.camel@wallace.localnet>
	<e48479d40910261618o57eb6d93o14f4d5d12bd34b15@mail.gmail.com>



On Mon, 26 Oct 2009, Eric Jain wrote:

> On Mon, Oct 19, 2009 at 20:45, Craig Ringer <craig@postnewspapers.com.au> wrote:
>>     hostssl    somedatabase    all    0.0.0.0/0    md5
>
> Thanks!
>
> Looks like what's happening is that PGPoolingDataSource is ignoring
> ssl=true. When I switch to PGSimpleDataSource, an SSL connection is
> established.

Looks like PGPoolingDataSource is busted and not just for SSL, but for a 
wide variety of connection options.  There's some code which copies over 
most of the options one at a time from the DataSource to a 
ConnectionPoolDataSource and it hasn't been updated in a long time.  It 
would be easy to add SSL to the list, but that code needs to be rewritten 
to something that's less fragile.

See org.postgresql.ds.jdbc23.AbstractJdbc23PoolingDataSource#initialize

Kris Jurka


view thread (5+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.0910270506510.7676@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.0910270506510.7676@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.0910270506510.7676@leary.csoft.net

 · 

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: books@ejurka.com, eric.jain@gmail.com
  Subject: Re: How to ensure that SSL is enabled?
  In-Reply-To: <alpine.BSO.2.00.0910270506510.7676@leary.csoft.net>
  References: <e48479d40910191731y37028537kd239b310a142fd22@mail.gmail.com> <1256010332.6437.74.camel@wallace.localnet> <e48479d40910261618o57eb6d93o14f4d5d12bd34b15@mail.gmail.com> <alpine.BSO.2.00.0910270506510.7676@leary.csoft.net>

* 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