Re: change TLS version in postgres

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: change TLS version in postgres
Дата
Msg-id 1583198.1624227894@sss.pgh.pa.us
обсуждение исходный текст
Ответ на change TLS version in postgres  (Yambu <hyambu@gmail.com>)
Ответы Re: change TLS version in postgres  (Yambu <hyambu@gmail.com>)
Список pgsql-admin
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



В списке pgsql-admin по дате отправления:

Предыдущее
От: Yambu
Дата:
Сообщение: change TLS version in postgres
Следующее
От: Yambu
Дата:
Сообщение: Re: change TLS version in postgres