Re: How to ensure that SSL is enabled? - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: How to ensure that SSL is enabled?
Date
Msg-id alpine.BSO.2.00.0910270506510.7676@leary.csoft.net
Whole thread Raw
In response to Re: How to ensure that SSL is enabled?  (Eric Jain <eric.jain@gmail.com>)
Responses Re: How to ensure that SSL is enabled?
List pgsql-jdbc

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

pgsql-jdbc by date:

Previous
From: Eric Jain
Date:
Subject: Re: Compression
Next
From: Enzo Cappa
Date:
Subject: Explain with jdbc