Re: self-made certs not quite right

From: Tiemen Ruiten <t(dot)ruiten(at)tech-lab(dot)io>
To: Rob Sargent <robjsargent(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: self-made certs not quite right
Date: 2021-03-03 10:32:22
Message-ID: CAEkBuzedb5ABD5iunBYihX-u2=MGtQhVpJDsnEv96tE=POBG5Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello Rob,

With root.crt in ~/.postgresql, testing the jdbc connection from a
> tomcat server generates this failure (again either localhost or
> $(hostname))
> Blow out on db connection to jdbc:postgresql://localhost:5432/postgres;
> SSL error: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target
> org.postgresql.util.PSQLException: SSL error: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target
>

Java has its own certificate keystore, you would need to add your
certificate to it: https://tomcat.apache.org/tomcat-8.5-doc/ssl-howto.html

Hope this helps.

--
Tiemen Ruiten
Infrastructure Engineer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2021-03-03 11:10:26 Re: permission denied for pg_temp_XX when vacuuming
Previous Message Tobias Lott 2021-03-03 08:58:33 permission denied for pg_temp_XX when vacuuming