Allow specifying CRL directory
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 18 Feb 2021 06:59:10 +0000 (07:59 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 18 Feb 2021 06:59:10 +0000 (07:59 +0100)
commitf5465fade90827534fbd0b795d18dc62e56939e9
tree71a2cc9b6804e78c2b2911f1c7426d096c9ca7af
parent128dd901a5c87e11c6a8cbe227a806cdc3afd10d
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.com
20 files changed:
contrib/postgres_fdw/expected/postgres_fdw.out
doc/src/sgml/config.sgml
doc/src/sgml/libpq.sgml
src/backend/libpq/be-secure-openssl.c
src/backend/libpq/be-secure.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/libpq/libpq.h
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-secure-openssl.c
src/interfaces/libpq/libpq-int.h
src/test/ssl/Makefile
src/test/ssl/ssl/client-crldir/9bb9e3c3.r0 [new file with mode: 0644]
src/test/ssl/ssl/root+client-crldir/9bb9e3c3.r0 [new file with mode: 0644]
src/test/ssl/ssl/root+client-crldir/a3d11bff.r0 [new file with mode: 0644]
src/test/ssl/ssl/root+server-crldir/a3d11bff.r0 [new file with mode: 0644]
src/test/ssl/ssl/root+server-crldir/a836cc2d.r0 [new file with mode: 0644]
src/test/ssl/ssl/server-crldir/a836cc2d.r0 [new file with mode: 0644]
src/test/ssl/t/001_ssltests.pl
src/test/ssl/t/SSLServer.pm