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 3E4F432A015 for ; Tue, 19 Oct 2004 23:49:54 +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 53908-03 for ; Tue, 19 Oct 2004 22:49:42 +0000 (GMT) Received: from ms-dienst.rz.rwth-aachen.de (ms-1.rz.RWTH-Aachen.DE [134.130.3.130]) by svr1.postgresql.org (Postfix) with ESMTP id BB9A9329D9E for ; Tue, 19 Oct 2004 23:49:43 +0100 (BST) Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0I5U003RWSQUGH@ms-dienst.rz.rwth-aachen.de> for pgsql-jdbc@postgresql.org; Wed, 20 Oct 2004 00:49:42 +0200 (MEST) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Wed, 20 Oct 2004 00:49:41 +0200 (MEST) Received: from post.halifax.rwth-aachen.de (post.halifax.RWTH-Aachen.DE [134.130.49.251]) by relay.rwth-aachen.de (8.13.0/8.13.0/1) with ESMTP id i9JMnfsU008358 for ; Wed, 20 Oct 2004 00:49:41 +0200 (MEST) Received: (qmail 23263 invoked from network); Tue, 19 Oct 2004 22:49:41 +0000 Received: from darkenemy.halifax.rwth-aachen.de ([134.130.48.36]) (envelope-sender ) by mail.halifax.rwth-aachen.de (qmail-ldap-1.03) with SMTP for ; Tue, 19 Oct 2004 22:49:41 +0000 Date: Wed, 20 Oct 2004 00:49:39 +0200 From: Ulrich Meis Subject: Re: A solution to the SSL customizing problem In-reply-to: To: Kris Jurka Cc: Oliver Jowett , pgsql-jdbc@postgresql.org Message-id: <200410200049.39716.kenobi@halifax.rwth-aachen.de> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: KMail/1.7 References: <200410111752.33375.kenobi@halifax.rwth-aachen.de> <200410160441.29561.kenobi@halifax.rwth-aachen.de> 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/210 X-Sequence-Number: 11315 On Sunday 17 October 2004 14:07, Kris Jurka wrote: > On Sat, 16 Oct 2004, Ulrich Meis wrote: > > [here's a patch to customize ssl.] > > I've applied a modified version of this patch. I moved the Driver.makeSSL > implementation into it's own class to not use @SSL@ everywhere. I renamed > the sslfactoryargs to sslfactorarg because it really is one argument. If > the user chooses to encode multiple arguments into it, that's really his > own business. I put a NonValidatingFactory class in to demonstrate > how this can work and provide the most requested functionality. Thanks a lot! > Questions: > > 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? The JSSE docs say : --- Like other JCA provider-based "engine" classes, SSLContext objects are created using the getInstance factory methods of the SSLContext class. These static methods each return an instance that implements at least the requested secure socket protocol. --- My guess is that the minimum requirement for pg is ssl (tls being its successor). Hence, I would use getInstance("SSL") but I suppose most java versions will support both anyway. Uli