X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BFE6532A11C for ; Sun, 17 Oct 2004 20:32:43 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13001-04 for ; Sun, 17 Oct 2004 19:32:41 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 4D740329EA8 for ; Sun, 17 Oct 2004 20:32:40 +0100 (BST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CJGlQ-0002s4-00; Mon, 18 Oct 2004 08:32:20 +1300 Message-ID: <4172C8C0.6030501@opencloud.com> Date: Mon, 18 Oct 2004 08:32:16 +1300 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: Ulrich Meis , pgsql-jdbc@postgresql.org Subject: Re: A solution to the SSL customizing problem References: <200410111752.33375.kenobi@halifax.rwth-aachen.de> <200410151621.49160.kenobi@halifax.rwth-aachen.de> <4170289B.6060108@opencloud.com> <200410160441.29561.kenobi@halifax.rwth-aachen.de> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/178 X-Sequence-Number: 11283 Kris Jurka wrote: > In the non-validating factory I have a SSLContext.getInstance("TLS"), but > I've also seen it use "SSL". Is either preferred or does it matter for > pg? http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html#AppA has a list of 'standard' protocol names. "TLS" supports the largest set of protocols, I believe. > I've been building the jdbc2ee jar files against the actual j2sdkee1.2.1, > not just the jdbc optional package. This includes support for > javax.net.ssl.SSLSocketFactory, but not javax.net.ssl.SSLContext and > associated classes which are in com.sun.net.ssl instead. So at the moment > I've modified the ssl requirements to not build ssl into this > particular jar. What do we want to do about this: > > - nothing, the ee really meant datasource and was never meant to > include ssl > - make the existing ssl support work by not building the > NonValidingFactory class Either of these look OK to me. > - make everything work by building the NonValidatingFactory by importing > from com.sun.net.ssl instead. I think this is a bad idea, it'd break the build on non-Sun JDKs. -O