Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAGiJ-0007nn-T8 for pgsql-docs@arkaria.postgresql.org; Mon, 24 Aug 2020 17:56:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kAGiI-0002pZ-5A for pgsql-docs@arkaria.postgresql.org; Mon, 24 Aug 2020 17:56:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAGiH-0002p0-VL for pgsql-docs@lists.postgresql.org; Mon, 24 Aug 2020 17:56:57 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAGiE-0002uI-Qb for pgsql-docs@postgresql.org; Mon, 24 Aug 2020 17:56:56 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kAGiD-0001Aw-TD for pgsql-docs@postgresql.org; Mon, 24 Aug 2020 13:56:53 -0400 Date: Mon, 24 Aug 2020 13:56:53 -0400 From: Bruce Momjian To: PostgreSQL-documentation Subject: Openssl v3_ca Message-ID: <20200824175653.GA32411@momjian.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline A few years ago I figured out how to create intermediate certificates that are transferred across OpenSSL connections by using the v3_ca extension, and added this to the PG documentation. I have now just figured out that v3_ca is just a heading in the openssl configuration file, e.g., /etc/ssl/openssl.cnf, and that it is specifically this line that enables this to work: basicConstraints = critical,CA:true I have created the attached documentation patch to clarify exactly what is needed, in case non-openssl tools are used. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee --HlL+5n6rz5pIUxbD Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v3_ca.diff" diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index c8698898f3..f705c4fec1 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -2194,7 +2194,8 @@ pg_dumpall -p 5432 | psql -d postgres -p 5433 can also be appended to the file. Doing this avoids the necessity of storing intermediate certificates on clients, assuming the root and intermediate certificates were created with v3_ca - extensions. This allows easier expiration of intermediate certificates. + extensions (which sets CA:TRUE on certificates). + This allows easier expiration of intermediate certificates. --HlL+5n6rz5pIUxbD--