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 1gvXO5-0007kt-L5 for pgsql-general@arkaria.postgresql.org; Mon, 18 Feb 2019 01:06:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gvXO4-0007YV-A0 for pgsql-general@arkaria.postgresql.org; Mon, 18 Feb 2019 01:06:24 +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 1gvXO3-0007YM-UU for pgsql-general@lists.postgresql.org; Mon, 18 Feb 2019 01:06:24 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvXO0-0006bC-Nt for pgsql-general@lists.postgresql.org; Mon, 18 Feb 2019 01:06:22 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2497421F75; Sun, 17 Feb 2019 20:06:20 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 17 Feb 2019 20:06:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=gh8B3+1fXP4Wbqa7IdSOcHjKK0b o3ZwDBFS8G0k0CcU=; b=ScNX1AXccp97Yktn75aeY2BlU5kf01GRtn4aK/0ZLa0 P5RhNIzaBlW6vEmoDLeVv38jSMDMeUpZmraogVyAhDgp2SQYbc5iMyxx9Z/ZJE1i t5Wbmmv+2POCOVrGR9eJFENXZ9KWSrNkIFDYFdUIsG5CL5zufALz/PCtqS2NwQqu tvRhSWoDO1iXoN2OMfobwTNcv0kfGdE8Wc2/27ddqmIIn3IQ2B9gV7cTe0kcLnoa 4oPfUu+d3TXoZq4iE4q36KB19mA66TMXl4eV1kLJKewZL4F+ZbtbPMXf8ME+JA01 wWVprvR0ghWyt7SbFs/eub9cdKWKv8UCdrhtE5CVk6g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=gh8B3+ 1fXP4Wbqa7IdSOcHjKK0bo3ZwDBFS8G0k0CcU=; b=oQhYEkwRI72qeCUPcEMSZL ZtlpvCi8mg6Hj6vgFtKEuHlliqPeuI83hTe/qrIMAhoDAekE7n8Xx994QAkE5OEl XAAbQhRoPNoyt+j20u0Jt4b8GGIFZ7fQATh5swkKZFMLs18rlWMDVsL6k1p/wBUy mI1dPE/DtAFQKLl0G34EZpFuNjIkC24CAPIiISSEmTnORgywabzmq2/197aZ04UN YINLlGYJa/3B8ZzFE4YcVWviXvmqUpqgdL30bn2Q6UV0vmnhzhKlNWPHY49g87rv sFP8wmDPujgApxSmJYFhxQHs7vEYVzNvyBgS/j/+8RKcV/X4VCx7IlJiVOuPIfLQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrudduvddgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdejtd dmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgt hhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqne cukfhppeeiuddrvdduhedrudefjedrudeivdenucfrrghrrghmpehmrghilhhfrhhomhep mhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id E3E8910312; Sun, 17 Feb 2019 20:06:17 -0500 (EST) Date: Mon, 18 Feb 2019 10:06:14 +0900 From: Michael Paquier To: Hugh Ranalli Cc: Bruce Momjian , pgsql-general@lists.postgresql.org Subject: Re: Channel binding not supported using scram-sha-256 passwords Message-ID: <20190218010614.GE1864@paquier.xyz> References: <20190215211417.GC14824@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="r7U+bLA8boMOj+mD" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --r7U+bLA8boMOj+mD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 15, 2019 at 04:18:40PM -0500, Hugh Ranalli wrote: > I did see that. However, I'm not *trying* to use it. I set up accounts with > scram-sha-256 passwords, and when trying to connect I get this message. > Hence why I tried to disable it. tls-server-end-point is implemented as channel binding type, and the only things which got removed as the connection parameter scram_channel_binding and the channel binding type tls-unique. So if you use SSL then channel binding will be used. On my side, if I connect to a server built with SSL and SCRAM then channel binding is used and works. Now, the error message "channel binding not supported by this build" would show up by either the backend or the frontend if X509_get_signature_nid() is not present in the version of OpenSSL your version of libpq (for the frontend) or your backend are linked to. This function has been added in OpenSSL 1.0.2, so it seems to me that you have an OpenSSL version mismatch between your client and the server. My guess is that the client uses OpenSSL 1.0.2, but the server is linked to OpenSSL 1.0.1 or older. (Note: I am not seeing anything bad in the code.) -- Michael --r7U+bLA8boMOj+mD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlxqBQYACgkQnvQgOdby QH2LaA/+IADpa+EpljgZ9KSo+/x+Nd3qmUJqIAFYp93k8ySO4XRpprnYOdx2BfOg gdtDKa3fTMgP6KJIs4ADgiOET596BRDH2GI/g/9dyT8w64vnNrJtpTsY6IpPgLf5 G4O+RtYCYldhJj7hALdrYOHqUIJZiFemEQ29D1eqtyBN2vUWq9RVx0tXCT38OeXZ Q6eiAe7iDGm4nNiKCS5Jq5cHebVLzx0m7a93iKJrvVmdavRglzWNJVec+0pg9Ata PrJYjf6E+/KhRo1VzGd1cOQ8m15IKTRyGMcEkeFlOjUL0R0owq874ehNN9uPs7XH TcxvceKxyVglD6jLP0m8B6VG76s4EJk8HfV7bf0mqiIo5JvfBdjjpC5SciZJbz/r Tr2TzHchRno9mevSg4AX56e216vQ4TJgnAr6bUvzZZ0PaFY6Ddf7jjZSkcNKvfEX bY3IRKGVEGFwjyjrKxWluUUiqmu4aDJPsR3hzbxJiupkh3Xg3Zyt9Yg5RFCWHZy7 GiTIvBthkF9JcoSnmk03WYYCkm7oMvJo1WN9g35lBcdryHkBMf7PeJNqZkot2uHu RiRNVTO1OKJLyeEr2lyA/jAyC0UVsVkJ3GCZJvdRuuMNctJQo5o499YneqfL0xZ1 iJBBsHRJCZuzhFBWAGDuavLno3UIVZ50gBaZKfKA5C6p3foguR0= =rOy/ -----END PGP SIGNATURE----- --r7U+bLA8boMOj+mD--