From: Gabriele Bulfon <gbulfon@sonicle.com>
To: Mark Rotteveel <mark@lawinegevaar.nl>
To: Craig Ringer <craig@2ndquadrant.com>
Cc: pgsql-jdbc@lists.postgresql.org
Subject: Re: ssl connection issues
Date: Mon, 17 Sep 2018 11:23:24 +0200 (CEST)
Message-ID: <491225265.1372.1537176204835@www> (raw)
In-Reply-To: <b91179a952d6b6d1c5df1c0100286b40@lawinegevaar.nl>
References: <652759681.5047.1536841425886@www>
<CAMsr+YGPkivLkDFdbUSuAxLnM3W2+Qu+bfcij1DB8kWZMVqUaw@mail.gmail.com>
<CADK3HHJBkGxLxn3UhRG7NVutce2wzywBJU5_+snJwUQo-P0m6w@mail.gmail.com>
<CAMsr+YEHpCHS9z==7NtAzJURc3rahUrNqXUq7CUSS8imeZjKCA@mail.gmail.com>
<b91179a952d6b6d1c5df1c0100286b40@lawinegevaar.nl>
That may be a possibility, but given that I cannot upgrade at the moment, how can I check this and maybe change the required cipher to match?
Gabriele
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
----------------------------------------------------------------------------------
Da: Mark Rotteveel
A: Craig Ringer
Cc: pgsql-jdbc@lists.postgresql.org
Data: 17 settembre 2018 11.18.30 CEST
Oggetto: Re: ssl connection issues
On 2018-09-17 10:22, Craig Ringer wrote:
On 14 September 2018 at 18:20, Dave Cramer
wrote:
On Thu, 13 Sep 2018 at 11:10, Craig Ringer
wrote:
On 13 September 2018 at 20:23, Gabriele Bulfon
wrote:
Hello,
I recently configured Postgresql 9.0.9 with SSL only "on" and all
its needed server certificates.
I then created the client certificates and started working with them
from a windows client.
At first I used them with tools like Navicat, just specified the 3
certs files (key,crt and root.crt) in the ssl pane, worked fine.
Then I tried with ODBC, placed the files in %APPDATA%/postgresql
with correct names (postgresql.key, postgresql.crt, root.crt),
created the connection and tested it, worked fine.
Last I tried with jdbc, thinking it would have been so easy: I'm
fighting for 2 days with lots of different issues.
After some messing, I also finally discovered that, different from
odbc, it would look for a pk8 file (why this difference?).
AFAIK it's largely historical, and due to now-lifted limitations in
JSSE.
You should probably use sslfactory=org.postgresql.ssl.LibPQFactory
and possibly specify explicit paths for the sslcert and sslkey
parameters.
This seems to be undocumented, unfortunately.
the default is LibPQFactory and it is fairly well documented.
https://jdbc.postgresql.org/documentation/head/connect.html#connection-parameters
[1]
Nope, apparently the only problem is my reading ability. Sorry.
That does make me wonder why Gabriele is having this issue though.
Given the age of PostgreSQL 9.0, could it be a SSL/TLS version problem,
given all the default restrictions to supported SSL/TLS versions and
supported cipher suites in recent Java version?
Mark
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: gbulfon@sonicle.com, mark@lawinegevaar.nl, craig@2ndquadrant.com
Subject: Re: ssl connection issues
In-Reply-To: <491225265.1372.1537176204835@www>
References: <652759681.5047.1536841425886@www> <CAMsr+YGPkivLkDFdbUSuAxLnM3W2+Qu+bfcij1DB8kWZMVqUaw@mail.gmail.com> <CADK3HHJBkGxLxn3UhRG7NVutce2wzywBJU5_+snJwUQo-P0m6w@mail.gmail.com> <CAMsr+YEHpCHS9z==7NtAzJURc3rahUrNqXUq7CUSS8imeZjKCA@mail.gmail.com> <b91179a952d6b6d1c5df1c0100286b40@lawinegevaar.nl> <491225265.1372.1537176204835@www>
* 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