pgsql: SSL: Add configuration option to prefer server cipher order - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: SSL: Add configuration option to prefer server cipher order
Date
Msg-id E1VpHiw-00074V-Fd@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
SSL: Add configuration option to prefer server cipher order

By default, OpenSSL (and SSL/TLS in general) lets the client cipher
order take priority.  This is OK for browsers where the ciphers were
tuned, but few PostgreSQL client libraries make the cipher order
configurable.  So it makes sense to have the cipher order in
postgresql.conf take priority over client defaults.

This patch adds the setting "ssl_prefer_server_ciphers" that can be
turned on so that server cipher order is preferred.  Per discussion,
this now defaults to on.

From: Marko Kreen <markokr@gmail.com>
Reviewed-by: Adrian Klaver <adrian.klaver@gmail.com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ef3267523d1ecf53bb6d4ffbeb6a0ae1af84ed47

Modified Files
--------------
doc/src/sgml/config.sgml                      |   21 +++++++++++++++++++++
src/backend/libpq/be-secure.c                 |    7 +++++++
src/backend/utils/misc/guc.c                  |   10 ++++++++++
src/backend/utils/misc/postgresql.conf.sample |    1 +
4 files changed, 39 insertions(+)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: docs: update partition encryption options
Next
From: Fujii Masao
Date:
Subject: pgsql: Expose qurey ID in pg_stat_statements view.