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 DD58E329E87 for ; Wed, 15 Sep 2004 00:59:27 +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 85209-03 for ; Tue, 14 Sep 2004 23:59:16 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 933C3329EB2 for ; Wed, 15 Sep 2004 00:59:13 +0100 (BST) Received: (qmail 19507 invoked from network); 14 Sep 2004 23:58:54 -0000 Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 14 Sep 2004 23:58:54 -0000 Subject: Re: Customizing SSL with jdbc From: Kris Jurka To: chinmoy Cc: pgsql-jdbc@postgresql.org In-Reply-To: <4145B31C.3000201@avaya.com> References: <413E0480.8010306@avaya.com> <4145B31C.3000201@avaya.com> Content-Type: text/plain Message-Id: <1095206324.1000.25.camel@doug.ejurka.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 14 Sep 2004 16:58:44 -0700 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: 200409/64 X-Sequence-Number: 10954 On Mon, 2004-09-13 at 07:47, chinmoy wrote: > Hi > Thanks for the reply. The only thing special about the factory is > that it has access to the server certificate that is bundled with the > client jars and is not installed in the jvm's trust store. I agree the > static method is not the way to go as it affects all the connections. In > my specific case it is okay as I know all the clients using the > connections in agiven client jvm. What about an additional URL parameter like sslfactoryfactory=com.mycompany.myfactory, where the provided class must implement something like: package org.postgresql; interface SSLSocketFactoryFactory { public SSLSocketFactory getFactory(); } Seems like this could work. Thoughts? Any other SSL options and things people would want to tweak? Kris Jurka