From: Tom Lane <tgl@sss.pgh.pa.us>
To: Yambu <hyambu@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: change TLS version in postgres
Date: Sun, 20 Jun 2021 18:24:54 -0400
Message-ID: <1583198.1624227894@sss.pgh.pa.us> (raw)
In-Reply-To: <CALhHtcBMc6ML+QinXyUctv34AoHWPs2gjyxrpJx1hjhkgfwrtQ@mail.gmail.com>
References: <CALhHtcBMc6ML+QinXyUctv34AoHWPs2gjyxrpJx1hjhkgfwrtQ@mail.gmail.com>
Yambu <hyambu@gmail.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, hyambu@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: change TLS version in postgres
In-Reply-To: <1583198.1624227894@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox