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 A0D2A5E3632 for ; Tue, 7 Sep 2004 20:00: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 11528-05 for ; Tue, 7 Sep 2004 19:00:32 +0000 (GMT) Received: from tiere.net.avaya.com (tiere.net.avaya.com [198.152.12.100]) by svr1.postgresql.org (Postfix) with ESMTP id 0A88F5E4849 for ; Tue, 7 Sep 2004 20:00:24 +0100 (BST) Received: from tiere.net.avaya.com (localhost [127.0.0.1]) by tiere.net.avaya.com (Switch-3.1.2/Switch-3.1.0) with ESMTP id i87IwimF016028 for ; Tue, 7 Sep 2004 14:58:44 -0400 (EDT) Received: from cof110avexu1.global.avaya.com (h135-9-6-16.avaya.com [135.9.6.16]) by tiere.net.avaya.com (Switch-3.1.2/Switch-3.1.0) with ESMTP id i87IwbmF015913 for ; Tue, 7 Sep 2004 14:58:39 -0400 (EDT) Received: from avaya.com ([135.9.42.114]) by cof110avexu1.global.avaya.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 7 Sep 2004 13:00:14 -0600 Message-ID: <413E0480.8010306@avaya.com> Date: Tue, 07 Sep 2004 12:57:04 -0600 From: chinmoy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Customizing SSL with jdbc Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Sep 2004 19:00:14.0890 (UTC) FILETIME=[E8AB40A0:01C4950C] 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/35 X-Sequence-Number: 10925 Hi I am using the jdbc driver for postgresql 7.4.5. I would like it to use a custom SSLSocketFactory. It seems like the Driver uses the javax.net.ssl.SSLSocketFactory.getDefault() method to create a socket factory. Other than compiling the Driver with a different class, is there any other way of doing this? For eg would it be worthwhile to provide a method in the org.postgresql.Driver class that lets one set the class that would then be aksed in the makeSSL method to create the SSLSocketFactory instance.? Chinmoy