SSL - NonValidatingFactory

From: nmset(at)netcourrier(dot)com
To: pgsql-jdbc(at)postgresql(dot)org
Subject: SSL - NonValidatingFactory
Date: 2009-07-24 08:48:46
Message-ID: mnet1.1248425326.6422.nmset@netcourrier.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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(at)netcourrier(dot)com

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Daniel Migowski 2009-07-24 10:03:50 Re: Encoding from CopyManager.copyIn()
Previous Message Ondřej Fafejta 2009-07-23 08:49:12 COPY SELECT with parameters