Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 6300C634922 for ; Tue, 27 Oct 2009 06:12:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 60206-09 for ; Tue, 27 Oct 2009 09:12:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id 4F015633DD0 for ; Tue, 27 Oct 2009 06:12:33 -0300 (ADT) Received: by leary.csoft.net (Postfix, from userid 1112) id 87665A17B; Tue, 27 Oct 2009 05:12:31 -0400 (EDT) Date: Tue, 27 Oct 2009 05:12:31 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Eric Jain cc: pgsql-jdbc@postgresql.org Subject: Re: How to ensure that SSL is enabled? In-Reply-To: Message-ID: References: <1256010332.6437.74.camel@wallace.localnet> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=AWL=0.000, BAYES_00=-2.599 X-Spam-Level: Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-Archive-Number: 200910/39 X-Sequence-Number: 20041 On Mon, 26 Oct 2009, Eric Jain wrote: > On Mon, Oct 19, 2009 at 20:45, Craig Ringer = wrote: >> =C2=A0=C2=A0=C2=A0 hostssl=C2=A0=C2=A0=C2=A0 somedatabase=C2=A0=C2=A0=C2= =A0 all=C2=A0=C2=A0=C2=A0 0.0.0.0/0=C2=A0=C2=A0=C2=A0 md5 > > Thanks! > > Looks like what's happening is that PGPoolingDataSource is ignoring > ssl=3Dtrue. When I switch to PGSimpleDataSource, an SSL connection is > established. Looks like PGPoolingDataSource is busted and not just for SSL, but for a=20 wide variety of connection options. There's some code which copies over=20 most of the options one at a time from the DataSource to a=20 ConnectionPoolDataSource and it hasn't been updated in a long time. It=20 would be easy to add SSL to the list, but that code needs to be rewritten= =20 to something that's less fragile. See org.postgresql.ds.jdbc23.AbstractJdbc23PoolingDataSource#initialize Kris Jurka=