Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpw5y-0003jL-3m for pgsql-general@arkaria.postgresql.org; Thu, 17 Dec 2020 16:25:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kpw5x-00070l-3e for pgsql-general@arkaria.postgresql.org; Thu, 17 Dec 2020 16:25:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpw5w-00070d-Sb for pgsql-general@lists.postgresql.org; Thu, 17 Dec 2020 16:25:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpw5u-0008Db-LR for pgsql-general@postgresql.org; Thu, 17 Dec 2020 16:25:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0BHGPVBX089910; Thu, 17 Dec 2020 11:25:31 -0500 From: Tom Lane To: Gustavsson Mikael cc: Magnus Hagander , Kyotaro Horiguchi , "pgsql-general@postgresql.org" , Svensson Peter Subject: Re: SV: SV: Problem with ssl and psql in Postgresql 13 In-reply-to: <698125e1105644adaa27578bb37b18f6@smhi.se> References: <20201217.172938.170511532557914014.horikyota.ntt@gmail.com> <06191eae74d045e192a786a84a73ba53@smhi.se> <65644.1608214801@sss.pgh.pa.us> , <698125e1105644adaa27578bb37b18f6@smhi.se> Comments: In-reply-to Gustavsson Mikael message dated "Thu, 17 Dec 2020 16:19:33 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <89908.1608222331.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 17 Dec 2020 11:25:31 -0500 Message-ID: <89909.1608222331@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Gustavsson Mikael writes: > $ /usr/pgsql-13/bin/psql "dbname=3Dpostgres user=3Dkalle host=3Dserver s= slmode=3Drequire" > psql: error: FATAL: no pg_hba.conf entry for host "nn.nnn.n.nnn", user = "kalle", database "postgres", SSL off > FATAL: no pg_hba.conf entry for host "nn.nnn.n.nnn", user "kalle", data= base "postgres", SSL off It'd be useful to verify that that version of psql+libpq is actually built with ssl support. Try ldd /usr/pgsql-13/bin/psql and then repeat "ldd" on whichever libpq.so is mentioned in the output. regards, tom lane