pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Support configuring TLSv1.3 cipher suites
Date: Thu, 24 Oct 2024 13:38:04 +0000
Message-ID: <E1t3y2P-002EUZ-Ca@gemulon.postgresql.org> (raw)

Support configuring TLSv1.3 cipher suites

The ssl_ciphers GUC can only set cipher suites for TLSv1.2, and lower,
connections. For TLSv1.3 connections a different OpenSSL API must be
used.  This adds a new GUC, ssl_tls13_ciphers, which can be used to
configure a colon separated list of cipher suites to support when
performing a TLSv1.3 handshake.

Original patch by Erica Zhang with additional hacking by me.

Author: Erica Zhang <ericazhangy2021@qq.com>
Author: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://postgr.es/m/tencent_063F89FA72CCF2E48A0DF5338841988E9809@qq.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/45188c2ea2391b7b24039e1632c726e2fc6b8008

Modified Files
--------------
doc/src/sgml/config.sgml                      | 36 +++++++++++++++++++++------
src/backend/libpq/be-secure-openssl.c         | 22 +++++++++++++---
src/backend/libpq/be-secure.c                 |  1 +
src/backend/utils/misc/guc_tables.c           | 15 +++++++++--
src/backend/utils/misc/postgresql.conf.sample |  3 ++-
src/include/libpq/libpq.h                     |  1 +
src/test/ssl/t/SSL/Server.pm                  |  3 ++-
7 files changed, 66 insertions(+), 15 deletions(-)



Message-ID: <E1t3y2P-002EUZ-Ca@gemulon.postgresql.org>
Permalink:  ../E1t3y2P-002EUZ-Ca@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1t3y2P-002EUZ-Ca@gemulon.postgresql.org

 · 

reply

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-committers@postgresql.org
  Cc: dgustafsson@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Support configuring TLSv1.3 cipher suites
  In-Reply-To: <E1t3y2P-002EUZ-Ca@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