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 1lv5sA-0001vm-UL for pgsql-admin@arkaria.postgresql.org; Sun, 20 Jun 2021 22:24:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lv5s9-0000wW-UV for pgsql-admin@arkaria.postgresql.org; Sun, 20 Jun 2021 22:24:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lv5s9-0000wN-MC for pgsql-admin@lists.postgresql.org; Sun, 20 Jun 2021 22:24:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lv5s7-0002US-GN for pgsql-admin@lists.postgresql.org; Sun, 20 Jun 2021 22:24:56 +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 15KMOsq31583199; Sun, 20 Jun 2021 18:24:54 -0400 From: Tom Lane To: Yambu cc: Pgsql-admin Subject: Re: change TLS version in postgres In-reply-to: References: Comments: In-reply-to Yambu message dated "Sun, 20 Jun 2021 23:25:46 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1583197.1624227894.1@sss.pgh.pa.us> Date: Sun, 20 Jun 2021 18:24:54 -0400 Message-ID: <1583198.1624227894@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Yambu writes: > I'm using postgres version 10, may i know how to change the tls version > from 1.0 to a higher version? If you have a new enough OpenSSL library, it should automatically prefer more recent protocol versions. If what you're concerned about is actively preventing use of lower protocol versions, the only way to do that within PG itself is the ssl_min_protocol_version setting, which exists in v12 and later. However, you ought to be able to achieve the same effect by adjusting the system-wide OpenSSL configuration: set MinProtocol=TLSv1.2 in openssl.cnf (wherever that is on your machine). You might find your distro already did that, btw. I am not sure, but it might be possible to use a private openssl config file if you want to only affect Postgres and not other daemons on the machine. See the OpenSSL documentation. regards, tom lane