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 1gukoQ-0001sa-Po for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 21:14:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gukoP-0003jM-4n for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 21:14:21 +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 1gukoO-0003jF-PB for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 21:14:20 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gukoM-0002g0-1d for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 21:14:19 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1gukoL-0003k4-4N; Fri, 15 Feb 2019 16:14:17 -0500 Date: Fri, 15 Feb 2019 16:14:17 -0500 From: Bruce Momjian To: Hugh Ranalli Cc: pgsql-general@lists.postgresql.org Subject: Re: Channel binding not supported using scram-sha-256 passwords Message-ID: <20190215211417.GC14824@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Feb 15, 2019 at 03:41:37PM -0500, Hugh Ranalli wrote: > > I've been trying to implement scram-sha-256 passwords on PostgreSQL 11.1. > However, connection attempts whether through Python (psycopg2) or psql fail > with the message: "channel binding not supported by this build." I've tried > clearing scram_channel_binding in my global psqlrc ("\set > scram_channel_binding"), with no success. > > We are not using SSL for the connections, and the documentation labels this as > an SASL authentication mechanism. Is SSL required for using scram-sha-256 > passwords? What am I missing? The PG 11 release notes are clear that channel binding is not supported in a usable way yet: https://www.postgresql.org/docs/11/release-11.html Add ability to use channel binding when using SCRAM authentication (Michael Paquier) Channel binding is intended to prevent man-in-the-middle attacks, but SCRAM cannot prevent them unless it can be forced to be active. Unfortunately, there is no way to do that in libpq. Support for it is expected in future versions of libpq and in interfaces not built using libpq, e.g. JDBC. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +