pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow specifying CRL directory
Date: Thu, 18 Feb 2021 07:16:25 +0000
Message-ID: <E1lCdY1-0004Eh-Oa@gemulon.postgresql.org> (raw)

Allow specifying CRL directory

Add another method to specify CRLs, hashed directory method, for both
server and client side.  This offers a means for server or libpq to
load only CRLs that are required to verify a certificate.  The CRL
directory is specifed by separate GUC variables or connection options
ssl_crl_dir and sslcrldir, alongside the existing ssl_crl_file and
sslcrl, so both methods can be used at the same time.

Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/20200731.173911.904649928639357911.horikyota.ntt@gmail.co...

Branch
------
master

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

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out  |  2 +-
doc/src/sgml/config.sgml                        | 36 ++++++++++++++++++++++++-
doc/src/sgml/libpq.sgml                         | 28 ++++++++++++++++++-
src/backend/libpq/be-secure-openssl.c           | 26 +++++++++++++++---
src/backend/libpq/be-secure.c                   |  1 +
src/backend/utils/misc/guc.c                    | 10 +++++++
src/backend/utils/misc/postgresql.conf.sample   |  1 +
src/include/libpq/libpq.h                       |  1 +
src/interfaces/libpq/fe-connect.c               |  6 +++++
src/interfaces/libpq/fe-secure-openssl.c        | 24 ++++++++++++-----
src/interfaces/libpq/libpq-int.h                |  1 +
src/test/ssl/Makefile                           | 24 ++++++++++++++++-
src/test/ssl/ssl/client-crldir/9bb9e3c3.r0      | 11 ++++++++
src/test/ssl/ssl/root+client-crldir/9bb9e3c3.r0 | 11 ++++++++
src/test/ssl/ssl/root+client-crldir/a3d11bff.r0 | 11 ++++++++
src/test/ssl/ssl/root+server-crldir/a3d11bff.r0 | 11 ++++++++
src/test/ssl/ssl/root+server-crldir/a836cc2d.r0 | 11 ++++++++
src/test/ssl/ssl/server-crldir/a836cc2d.r0      | 11 ++++++++
src/test/ssl/t/001_ssltests.pl                  | 32 ++++++++++++++++++++--
src/test/ssl/t/SSLServer.pm                     | 14 +++++++++-
20 files changed, 255 insertions(+), 17 deletions(-)



Message-ID: <E1lCdY1-0004Eh-Oa@gemulon.postgresql.org>
Permalink:  ../E1lCdY1-0004Eh-Oa@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lCdY1-0004Eh-Oa@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@eisentraut.org
  Subject: Re: pgsql: Allow specifying CRL directory
  In-Reply-To: <E1lCdY1-0004Eh-Oa@gemulon.postgresql.org>
  References: <E1lCdY1-0004Eh-Oa@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