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 4ED58329E0E for ; Wed, 15 Sep 2004 04:23:23 +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 33414-09 for ; Wed, 15 Sep 2004 03:23:16 +0000 (GMT) Received: from tierw.net.avaya.com (tierw.net.avaya.com [198.152.13.100]) by svr1.postgresql.org (Postfix) with ESMTP id 4261D329CDB for ; Wed, 15 Sep 2004 04:23:15 +0100 (BST) Received: from tierw.net.avaya.com (localhost [127.0.0.1]) by tierw.net.avaya.com (Switch-3.1.2/Switch-3.1.0) with ESMTP id i8F3FuCa018743 for ; Tue, 14 Sep 2004 22:15:56 -0500 (EST) Received: from cof110avexu1.global.avaya.com (h135-9-6-16.avaya.com [135.9.6.16]) by tierw.net.avaya.com (Switch-3.1.2/Switch-3.1.0) with ESMTP id i8F3FtCa018732 for ; Tue, 14 Sep 2004 22:15:55 -0500 (EST) Received: from avaya.com ([135.148.74.251]) by cof110avexu1.global.avaya.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 14 Sep 2004 21:23:12 -0600 Message-ID: <4147B3E0.9050508@avaya.com> Date: Tue, 14 Sep 2004 21:15:44 -0600 From: chinmoy gangolli User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: Customizing SSL with jdbc References: <413E0480.8010306@avaya.com> <4145B31C.3000201@avaya.com> <1095206324.1000.25.camel@doug.ejurka.com> In-Reply-To: <1095206324.1000.25.camel@doug.ejurka.com> Content-Type: multipart/alternative; boundary="------------010301010106070407050008" X-OriginalArrivalTime: 15 Sep 2004 03:23:12.0296 (UTC) FILETIME=[54B23A80:01C49AD3] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200409/66 X-Sequence-Number: 10956 This is a multi-part message in MIME format. --------------010301010106070407050008 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Kris Thanks again. This would certainly work for my scenario. A similar option for client authentication might also be useful. Chinmoy. Kris Jurka wrote: >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 > > > --------------010301010106070407050008 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Kris
    Thanks again. This would certainly work for my scenario. A similar option for client authentication might also be useful.
Chinmoy.

Kris Jurka wrote:
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

  
--------------010301010106070407050008--