From: nmset@netcourrier.com
To: pgsql-jdbc@postgresql.org
Subject: SSL - NonValidatingFactory
Date: Fri, 24 Jul 2009 10:48:46 +0200
Message-ID: <mnet1.1248425326.6422.nmset@netcourrier.com> (raw)
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@netcourrier.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: nmset@netcourrier.com
Subject: Re: SSL - NonValidatingFactory
In-Reply-To: <mnet1.1248425326.6422.nmset@netcourrier.com>
References: <mnet1.1248425326.6422.nmset@netcourrier.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox