Re: How to ensure that SSL is enabled?

From: Kris Jurka <books(at)ejurka(dot)com>
To: Eric Jain <eric(dot)jain(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: How to ensure that SSL is enabled?
Date: 2009-10-27 09:12:31
Message-ID: alpine.BSO.2.00.0910270506510.7676@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, 26 Oct 2009, Eric Jain wrote:

> On Mon, Oct 19, 2009 at 20:45, Craig Ringer <craig(at)postnewspapers(dot)com(dot)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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Enzo Cappa 2009-10-28 20:36:51 Explain with jdbc
Previous Message Eric Jain 2009-10-26 23:45:38 Re: Compression