Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1A8221337B95 for ; Sat, 5 Feb 2011 18:19:14 -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 27671-07 for ; Sat, 5 Feb 2011 22:19:07 +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 F0CD71337B8B for ; Sat, 5 Feb 2011 18:19:06 -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 3B1FBC000CD; Sat, 5 Feb 2011 23:19:07 +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 23:19:14 +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> <201102051708.24712.rsmogura@softperience.eu> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201102052319.14282.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/29 X-Sequence-Number: 21427 zhong ming wu Saturday 05 February 2011 22:11:50 > On Sat, Feb 5, 2011 at 11:08 AM, Rados=C5=82aw Smogura >=20 > It's nice to know that all the problems can be traced to JVM settings. >=20 > FWIW, I ended using > 'sslfactory=3Dorg.postgresql.ssl.NonViladatingFactory' on Windows 7 > which I didn't need on Mac. >=20 > Have you looked into 'keytool' ? That lets you manipulate the > certificates that JVM relies on. What I am not sure is where one must > enter server certificates one by one into JVM or whether one can enter > a CA. Sueficinet is to put parent cert (or self-signed) cert in truststore, but=20 standard validator validates certs expirantion date. I don't know if parent= =20 cert must be self-signed. Actually I have own CA, so it was sueficient to p= ut=20 CA cert in truststore. If SSL doesn't want to work with this=20 =2DDjavax.net.ssl.trustStorePassword=3Dchangeit may help,"chageit" is standard master password.