From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add hints about protocol-version-related SSL connection failures
Date: Sat, 27 Jun 2020 16:48:12 +0000
Message-ID: <E1jpDzw-0008LN-KN@gemulon.postgresql.org> (raw)
Add hints about protocol-version-related SSL connection failures.
OpenSSL's native reports about problems related to protocol version
restrictions are pretty opaque and inconsistent. When we get an
SSL error that is plausibly due to this, emit a hint message that
includes the range of SSL protocol versions we (think we) are
allowing. This should at least get the user thinking in the right
direction to resolve the problem, even if the hint isn't totally
accurate, which it might not be for assorted reasons.
Back-patch to v13 where we increased the default minimum protocol
version, thereby increasing the risk of this class of failure.
Patch by me, reviewed by Daniel Gustafsson
Discussion: https://postgr.es/m/a9408304-4381-a5af-d259-e55d349ae4ce@2ndquadrant.com
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/e2bcd99be18c67fea575a9789ebafd650e6e1076
Modified Files
--------------
src/backend/libpq/be-secure-openssl.c | 67 +++++++++++++++++++++++++++++++-
src/include/common/openssl.h | 23 ++++++++++-
src/interfaces/libpq/fe-secure-openssl.c | 39 +++++++++++++++++++
3 files changed, 127 insertions(+), 2 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Add hints about protocol-version-related SSL connection failures
In-Reply-To: <E1jpDzw-0008LN-KN@gemulon.postgresql.org>
References: <E1jpDzw-0008LN-KN@gemulon.postgresql.org>
* 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