From: Andrus <kobruleht2@hot.ee>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to check is connection encrypted
Date: Fri, 22 Mar 2019 16:56:58 +0200
Message-ID: <60A09E32534D41AE9A3E370973FE5B30@dell2> (raw)
In-Reply-To: <25068.1553263908@sss.pgh.pa.us>
References: <08F9F2EFA2AC46249CEDA929B773BCB9@dell2>
<25068.1553263908@sss.pgh.pa.us>
Hi!
>Or, if you want to check/enforce this from the server side,
>you could enable log_connections and see what's logged;
>or simply change pg_hba.conf to disallow non-SSL connections.
I set log_connections =on
pg_hba.conf contains :
local all postgres trust
local all all md5
hostssl yle all 0.0.0.0/0 md5
hostssl yle all ::1/0 md5
host yle testuser 0.0.0.0/0 reject
host yle testuser ::1/0 reject
...
log file does not show ssl connection info:
2019-03-22 16:49:03 EET [unknown] [unknown] LOG:
connection received: host=xx.xx.xx.xx port=54590
2019-03-22 16:49:04 EET testuser yle LOG: connection
authorized: user=testuser database=yle
Why Postgres 9.1.5 version does not show ssl connection info here ?
Does this mean that there is no SSL connection or is ssl info logging added
in newer versions ?
Andrus.
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-general@postgresql.org
Cc: kobruleht2@hot.ee, tgl@sss.pgh.pa.us
Subject: Re: How to check is connection encrypted
In-Reply-To: <60A09E32534D41AE9A3E370973FE5B30@dell2>
References: <08F9F2EFA2AC46249CEDA929B773BCB9@dell2> <25068.1553263908@sss.pgh.pa.us> <60A09E32534D41AE9A3E370973FE5B30@dell2>
* 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