SV: SV: Problem with ssl and psql in Postgresql 13 - Mailing list pgsql-general

From Gustavsson Mikael
Subject SV: SV: Problem with ssl and psql in Postgresql 13
Date
Msg-id a748b98ff0a94fe0a1ca54872ec5a25e@smhi.se
Whole thread Raw
In response to Re: SV: Problem with ssl and psql in Postgresql 13  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SV: Problem with ssl and psql in Postgresql 13
List pgsql-general


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


pgsql-general by date:

Previous
From: "Joel Jacobson"
Date:
Subject: Raise exception without using plpgsql?
Next
From: Magnus Hagander
Date:
Subject: Re: SV: Problem with ssl and psql in Postgresql 13