Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 5D3681337B47 for ; Sat, 5 Feb 2011 12:08:27 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 69683-04 for ; Sat, 5 Feb 2011 16:08:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.softperience.eu (static-ip-217-118-26-141.inaddr.intergenia.de [217.118.26.141]) by mail.postgresql.org (Postfix) with ESMTP id 1B36B1337B95 for ; Sat, 5 Feb 2011 12:08:18 -0400 (AST) Received: from radek.localnet (87-204-194-135.dg-net.pl [87.204.194.135]) by mail.softperience.eu (Postfix) with ESMTPA id 38E41C000CD; Sat, 5 Feb 2011 17:08:23 +0100 (CET) From: =?utf-8?q?Rados=C5=82aw_Smogura?= To: pgsql-jdbc@postgresql.org Subject: Re: ssl connection strangely stops working Date: Sat, 5 Feb 2011 17:08:24 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-gentoo-r5; KDE/4.4.5; x86_64; ; ) Cc: zhong ming wu References: <201102050958.37104.rsmogura@softperience.eu> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201102051708.24712.rsmogura@softperience.eu> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201102/24 X-Sequence-Number: 21422 zhong ming wu Saturday 05 February 2011 15:31:30 > On Sat, Feb 5, 2011 at 3:58 AM, Rados=C5=82aw Smogura >=20 > wrote: > > I don't think JDBC driver use custom SSL "validators" including host na= me > > and certificate chains, if you don't specify one with socket factory. It > > lies on this what is available in JVM. It's looks like in this way Sun > > SSL sockets works. I was asking because I was need to configure truststore password with -D=20 (realy unsecure, because ps -wwx will show it), to make GF to open LDAPS=20 connection - I have self signed cert. > Very likely that the settings is in JVM. When I wrote above reply I > made it work on Mac. > GF is using JVM of Apple. I am still struggling to make it work on > windows 7 which uses Oracle JVM. I tested GF 3.1 on IBM JDK. I looked into sources, there are many many plac= es=20 that depends on Sun JVM implementation and Sun JDK. I wrote few lines to ma= ke=20 this work, but hmmm... many places left. > Also in my replied above I meant to write that there is still > hostname/CN mismatch with new unexpired commercial CA. >=20 I didn't found, at a glance any piece of code that adds custom cert or host= =20 name validation in JDBC driver, it uses this what will get from system. Regards, Radek