pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add hints about protocol-version-related SSL connection failures
2+ messages / 1 participants
[nested] [flat]

* pgsql: Add hints about protocol-version-related SSL connection failures
@ 2020-06-27 16:48 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2020-06-27 16:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b63dd3d88f479947ef7fb7cbf5db27de66ae0654

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Add hints about protocol-version-related SSL connection failures
@ 2020-06-27 16:48 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2020-06-27 16:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-06-27 16:48 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-06-27 16:48 pgsql: Add hints about protocol-version-related SSL connection failures Tom Lane <tgl@sss.pgh.pa.us>
2020-06-27 16:48 pgsql: Add hints about protocol-version-related SSL connection failures Tom Lane <tgl@sss.pgh.pa.us>

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