From: Gustavsson Mikael <mikael.gustavsson@smhi.se>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: Svensson Peter <peter.svensson@smhi.se>
Subject: SV: SV: Problem with ssl and psql in Postgresql 13
Date: Thu, 17 Dec 2020 14:35:45 +0000
Message-ID: <a748b98ff0a94fe0a1ca54872ec5a25e@smhi.se> (raw)
In-Reply-To: <65644.1608214801@sss.pgh.pa.us>
References: <e5b0b6ed05764324a2f3fe7acfc766d5@smhi.se>
<20201217.172938.170511532557914014.horikyota.ntt@gmail.com>
<06191eae74d045e192a786a84a73ba53@smhi.se>
<65644.1608214801@sss.pgh.pa.us>
Hi,
log_connections is on. The ERR message is correct, we do not have an entry for SSL off.
The question is why psql(13) is trying to connect without ssl?
2020-12-17T14:25:09.565566+00:00 server INFO [30-1] pgpid=2422778 pguser=[unknown] pghost=nnn.nn.n.nnn pgdb=[unknown] pgapp=[unknown] LOG: connection received: host=nnn.nn.n.nnn port=40112
2020-12-17T14:25:09.566411+00:00 server ERR [31-1] pgpid=2422778 pguser=kalle pghost=nnn.nn.n.nnn pgdb=postgres pgapp=[unknown] FATAL: no pg_hba.conf entry for host "nnn.nn.n.nnn", user "kalle", database "postgres", SSL off
KR
Mikael Gustavsson, SMHI
________________________________
Från: Tom Lane <tgl@sss.pgh.pa.us>
Skickat: den 17 december 2020 15:20:01
Till: Gustavsson Mikael
Kopia: Kyotaro Horiguchi; pgsql-general@postgresql.org; Svensson Peter
Ämne: Re: SV: Problem with ssl and psql in Postgresql 13
Gustavsson Mikael <mikael.gustavsson@smhi.se> writes:
> Clarification, its the same postgresql13 server. I just connect with different psql-clients.
Perhaps turning on log_connections on the server would offer some
insight. It sort of looks like the v13 client is trying to connect
with SSL, failing for some unknown reason, and falling back to non-SSL
which also fails.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-general@postgresql.org
Cc: mikael.gustavsson@smhi.se, tgl@sss.pgh.pa.us, horikyota.ntt@gmail.com, peter.svensson@smhi.se
Subject: Re: SV: SV: Problem with ssl and psql in Postgresql 13
In-Reply-To: <a748b98ff0a94fe0a1ca54872ec5a25e@smhi.se>
* 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