pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Wall <d.wall@computer.org>
To: pgsql-jdbc@lists.postgresql.org
Subject: Re: SSL connection issue with JDBC
Date: Tue, 14 May 2019 10:07:01 -0700
Message-ID: <c3007a51-b7a8-23b3-a1f4-41f9bd2c1bed@computer.org> (raw)
In-Reply-To: <2d9ac944-ab26-b4dd-0a95-49507ba3208f@gmail.com>
References: <BM1PR01MB31057630EA32B8D29081627F8F080@BM1PR01MB3105.INDPRD01.PROD.OUTLOOK.COM>
	<2d9ac944-ab26-b4dd-0a95-49507ba3208f@gmail.com>

On 5/14/19 9:31 AM, Rob Sargent wrote:
>
>> If I use *_latest JDBC postgrsql driver "postgresql-42.2.5"_* then I 
>> get below error.
>>
>>  Anup
>>
> Update you jdbc driver to current release.


Sounds like that was done.

Are you sure your SSL certs are recognized?  The original exception 
suggests an issue with trust along the chain:

Caused by: java.security.cert.CertPathValidatorException: The 
certificate issued by CN=certificate-authority is not trusted; internal 
cause is:

java.security.cert.CertPathValidatorException: Certificate chaining error

That does seem an unexpected CN.  Both your java cacerts and postgres 
would have to share the CA certs needed to validate the full chain.

David

view thread (5+ messages)  latest in thread

Message-ID: <c3007a51-b7a8-23b3-a1f4-41f9bd2c1bed@computer.org>
Permalink:  ../c3007a51-b7a8-23b3-a1f4-41f9bd2c1bed@computer.org/
Also on:    postgresql.org/message-id/c3007a51-b7a8-23b3-a1f4-41f9bd2c1bed@computer.org

 · 

reply

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: d.wall@computer.org
  Subject: Re: SSL connection issue with JDBC
  In-Reply-To: <c3007a51-b7a8-23b3-a1f4-41f9bd2c1bed@computer.org>
  References: <BM1PR01MB31057630EA32B8D29081627F8F080@BM1PR01MB3105.INDPRD01.PROD.OUTLOOK.COM> <2d9ac944-ab26-b4dd-0a95-49507ba3208f@gmail.com> <c3007a51-b7a8-23b3-a1f4-41f9bd2c1bed@computer.org>

* 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