Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 09D6B633BD8 for ; Fri, 24 Jul 2009 05:58:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 31640-04 for ; Fri, 24 Jul 2009 08:58:12 +0000 (UTC) X-Greylist: delayed 00:09:22.949426 by SQLgrey-1.7.6 Received: from relay-2.mailobj.net (relay-2.mailobj.net [195.234.90.137]) by mail.postgresql.org (Postfix) with ESMTP id 8F22E63320A for ; Fri, 24 Jul 2009 05:58:12 -0300 (ADT) Received: from netcourrier.com (webmail-3.in.mailobj.net [192.168.90.140]) by relay-2.mailobj.net (Postfix) with SMTP id E6D6F14D1BB for ; Fri, 24 Jul 2009 10:48:46 +0200 (CEST) Received: from [93.17.224.61] by webmail-3.netcourrier.com via html interface From: nmset@netcourrier.com To: pgsql-jdbc@postgresql.org Subject: SSL - NonValidatingFactory Date: Fri, 24 Jul 2009 10:48:46 +0200 Mime-Version: 1.0 X-Mailer: Medianet/v2.0 Message-Id: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=-10 required=5 tests=none X-Spam-Level: X-Archive-Number: 200907/58 X-Sequence-Number: 19826 Hello, I am having problems making SSL connection to PostgreSQL 8.3.7 with the jdbc driver, when using the NonValidatingFactory. The server constantly rejects the connection saying there is no certificate presented. There is no problem when NonValidatingFactory is not in use, and a keystore + truststore are used by the usual mechanism (-Djavax.ssl...). According to the PostgreSQl server documentation, if a root.crt cerfificate is present in the data directory of the database cluster, the server requires that a client certificate must be verified. The NonValidatingFactory is supposed to bypass any credentials presentation to the server. How can one manage to use the NonValidatingFactory successfully ? just for traffic encryption. Thank you. SET nmset=40netcourrier.com