pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add ssl_passphrase_command setting
Date: Sat, 17 Mar 2018 12:31:55 +0000
Message-ID: <E1exB07-0001Ni-Vo@gemulon.postgresql.org> (raw)

Add ssl_passphrase_command setting

This allows specifying an external command for prompting for or
otherwise obtaining passphrases for SSL key files.  This is useful
because in many cases there is no TTY easily available during service
startup.

Also add a setting ssl_passphrase_command_supports_reload, which allows
supporting SSL configuration reload even if SSL files need passphrases.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8a3d9425290ff5f6434990349886afae9e1c6008

Modified Files
--------------
doc/src/sgml/config.sgml                      |  60 +++++++++++++
src/backend/libpq/Makefile                    |   2 +-
src/backend/libpq/be-secure-common.c          | 120 ++++++++++++++++++++++++++
src/backend/libpq/be-secure-openssl.c         |  58 ++++++++++---
src/backend/libpq/be-secure.c                 |   2 +
src/backend/utils/misc/guc.c                  |  19 ++++
src/backend/utils/misc/postgresql.conf.sample |   2 +
src/include/libpq/libpq.h                     |   8 ++
src/test/ssl/Makefile                         |   5 ++
src/test/ssl/README                           |   3 +
src/test/ssl/ssl/server-password.key          |  18 ++++
src/test/ssl/t/001_ssltests.pl                |  35 ++++++--
src/tools/msvc/Mkvcbuild.pm                   |   1 +
13 files changed, 313 insertions(+), 20 deletions(-)



Message-ID: <E1exB07-0001Ni-Vo@gemulon.postgresql.org>
Permalink:  ../E1exB07-0001Ni-Vo@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1exB07-0001Ni-Vo@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 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: peter_e@gmx.net
  Subject: Re: pgsql: Add ssl_passphrase_command setting
  In-Reply-To: <E1exB07-0001Ni-Vo@gemulon.postgresql.org>
  References: <E1exB07-0001Ni-Vo@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