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 B70F53A645E for ; Sat, 11 Dec 2004 22:48:20 +0000 (GMT) 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 68239-03 for ; Sat, 11 Dec 2004 22:48:09 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id A56083A6459 for ; Sat, 11 Dec 2004 22:48:10 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CdG1u-0007mh-00; Sun, 12 Dec 2004 11:47:59 +1300 Message-ID: <41BB7AC3.6040301@opencloud.com> Date: Sun, 12 Dec 2004 11:54:59 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.9 (X11/20041130) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: Andrew M , pgsql-jdbc@postgresql.org Subject: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException References: <73F89B04-47E1-11D9-870C-0003938366A4@jibeya.com> <200412071137.04871@vadim.nasardinov> <200412080837.57840@vadim.nasardinov> <8205B1BB-497B-11D9-870C-0003938366A4@jibeya.com> In-Reply-To: X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/94 X-Sequence-Number: 11760 Kris Jurka wrote: > > On Thu, 9 Dec 2004, Andrew M wrote: > >>Now for the for handshaking to be successful with the root docs in the >>/data folder, postgresql expects the client to return a certificate. So >>my question is: >> > Currently the JDBC driver does not implement this functionality. [...] Now that we have a sslfactory URL arg, can't you implement a SSLSocketFactory that provides the right client-certificate-lookup logic? You'd return a socket created via a SSLContext initialized with an appropriate KeyManager (and TrustManager obviously). -O