Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7Xza-0000Dc-UJ for pgsql-general@arkaria.postgresql.org; Sat, 23 Mar 2019 04:10:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h7XzZ-0005di-4h for pgsql-general@arkaria.postgresql.org; Sat, 23 Mar 2019 04:10:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7Lbh-0002AW-HK for pgsql-general@lists.postgresql.org; Fri, 22 Mar 2019 14:57:17 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.122]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7Lbd-0007r3-Qy for pgsql-general@postgresql.org; Fri, 22 Mar 2019 14:57:16 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 2DC3AADB; Fri, 22 Mar 2019 16:57:11 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KrtYnh01Feoc; Fri, 22 Mar 2019 16:57:08 +0200 (EET) Received: from mail.hot.ee (hot-relayhost2.estpak.ee [213.180.2.80]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id D9DB09ED; Fri, 22 Mar 2019 16:57:08 +0200 (EET) Received: from dell2 (66-63-196-88.sta.estpak.ee [88.196.63.66]) (Authenticated sender: kobruleht2) by HOT-Relayhost2.estpak.ee (Postfix) with ESMTPSA id 44Qmw33cbNzMB; Fri, 22 Mar 2019 16:57:06 +0200 (EET) Message-ID: <60A09E32534D41AE9A3E370973FE5B30@dell2> From: "Andrus" To: "Tom Lane" Cc: "pgsql-general" References: <08F9F2EFA2AC46249CEDA929B773BCB9@dell2> <25068.1553263908@sss.pgh.pa.us> In-Reply-To: <25068.1553263908@sss.pgh.pa.us> Subject: Re: How to check is connection encrypted Date: Fri, 22 Mar 2019 16:56:58 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.