Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQatR-0002Z9-Km for pgsql-jdbc@arkaria.postgresql.org; Tue, 14 May 2019 17:07:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hQatQ-0002jv-8S for pgsql-jdbc@arkaria.postgresql.org; Tue, 14 May 2019 17:07:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQatP-0002jo-Tf for pgsql-jdbc@lists.postgresql.org; Tue, 14 May 2019 17:07:08 +0000 Received: from smtp104.ord1d.emailsrvr.com ([184.106.54.104]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQatM-0002Dg-RY for pgsql-jdbc@lists.postgresql.org; Tue, 14 May 2019 17:07:06 +0000 Received: from smtp22.relay.ord1d.emailsrvr.com (localhost [127.0.0.1]) by smtp22.relay.ord1d.emailsrvr.com (SMTP Server) with ESMTP id 9CFACE0290 for ; Tue, 14 May 2019 13:07:03 -0400 (EDT) X-Auth-ID: david.wall@myeastside.com Received: by smtp22.relay.ord1d.emailsrvr.com (Authenticated sender: david.wall-AT-myeastside.com) with ESMTPSA id 2BD44E0312 for ; Tue, 14 May 2019 13:07:02 -0400 (EDT) X-Sender-Id: david.wall@myeastside.com Received: from [10.138.21.190] (50-46-115-29.evrt.wa.frontiernet.net [50.46.115.29]) (using TLSv1.2 with cipher AES128-SHA) by 0.0.0.0:465 (trex/5.7.12); Tue, 14 May 2019 13:07:03 -0400 Subject: Re: SSL connection issue with JDBC To: pgsql-jdbc@lists.postgresql.org References: <2d9ac944-ab26-b4dd-0a95-49507ba3208f@gmail.com> From: David Wall Message-ID: Date: Tue, 14 May 2019 10:07:01 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <2d9ac944-ab26-b4dd-0a95-49507ba3208f@gmail.com> Content-Type: multipart/alternative; boundary="------------CB99530C54B35C91F72E87DA" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------CB99530C54B35C91F72E87DA Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit 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 --------------CB99530C54B35C91F72E87DA Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
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

--------------CB99530C54B35C91F72E87DA--