Re: PostgreSQL + SSL - sun.security.validator.ValidatorException

From: Kris Jurka <books(at)ejurka(dot)com>
To: Andrew M <andrew(at)jibeya(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PostgreSQL + SSL - sun.security.validator.ValidatorException
Date: 2004-12-07 00:01:35
Message-ID: Pine.BSO.4.56.0412061856400.13978@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, 6 Dec 2004, Andrew M wrote:

> Hi,
> I have specified a connection string in my postgres-ds.xml file as
>
> Connection string:
>
> jdbc:postgresql://localhost:5432/mydatabase?ssl
>
> my Driver is:
> DriverVersion PostgreSQL 8.0devel JDBC3 with SSL (build 308)
>
> Where is the driver looking for the keystore/certificate?, as I have
> placed them in the root of the data folder - /usr/local/pgsql/data. If
> I remove any of the certificate files from the data folder I get an
> error message telling me that the files do not exist.

The data folder is only for the server. The JDBC driver needs the
certificate in the JVM's truststore. Where this truststore is located is
up to your JVM. This can be set be -Djavax.net.ssl.trustStore=... or may
default to $JAVA_HOME/lib/security/cacerts.

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Andrew M 2004-12-07 00:41:33 Re: PostgreSQL + SSL - sun.security.validator.ValidatorException
Previous Message Andrew M 2004-12-06 23:49:22 PostgreSQL + SSL - sun.security.validator.ValidatorException