Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0A53F9FB5F8 for ; Fri, 6 Jul 2007 17:51:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 13284-04 for ; Fri, 6 Jul 2007 17:51:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 78B5A9FB489 for ; Fri, 6 Jul 2007 17:51:11 -0300 (ADT) Received: (qmail 16166 invoked by uid 1112); 6 Jul 2007 20:51:09 -0000 Date: Fri, 6 Jul 2007 16:51:09 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Albe Laurenz cc: pgsql-jdbc@postgresql.org Subject: Re: SSL support for javax.sql.DataSource In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/25 X-Sequence-Number: 17199 On Wed, 20 Jun 2007, Albe Laurenz wrote: > Should I go ahead and write a patch against CVS HEAD, including > sslfactory? I guess I should write a patch or the documentation too > then. Yes, please. > As you say, that discussion should happen elsewhere, but I believe that > SSL without certificate validation would be a good default > because this is the way it is done everywhere else in PostgreSQL. > One of the ideas that Oliver had was to make the ssl parameter take a String value so you could say things like ssl=try or ssl=require or ssl=none. See the brief code around org.postgresql.core.v3.ConnectionFactoryImpl#openConnectionImpl. We could do that and add ssl=validate or ssl=novalidate. That would make it easier for people to change the validation setting without getting into the details of sslfactory. I didn't think ssl=try was a real useful setting so resisted the idea at the time, but now that there are more interesting options perhaps we should give the idea another look. Kris Jurka