Correction of intermediate certificate handling

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-documentation <pgsql-docs(at)postgresql(dot)org>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, David Steele <david(at)pgmasters(dot)net>
Subject: Correction of intermediate certificate handling
Date: 2018-01-16 00:22:38
Message-ID: 20180116002238.GC12724@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

We have been confused by the behavior of intermediate certificates in
Postgres for many years. Some people put the intermediate certificates
only on the server and they were supplied to the client, while other
people couldn't get that to work. In our documentation we recommended
storing intermediate certificates on the client and server.

As part of research for my security talks:

https://momjian.us/main/presentations/security.html

I asked Stephen Frost and David Steele for details on the arcane art of
SSL certificate creation. They showed me scripts they use and explained
that they properly pass intermediate certificates to clients. The trick
was to use the v3_ca extension when creating root and intermediate
certificates.

My talk documents this behavior. In this talk:

https://momjian.us/main/writings/pgsql/tls.pdf

slide 47 and 49 use -extensions v3_ca. Slides 73 and 74 show that the
intermediate is not needed on the client if it is created with v3_ca and
exist on the server. Slide 75 shows that the server certificate must be
first in server.crt.

I have created the attached doc patch to add this information to our
docs. I would like to backpatch this since what we have now, while it
works, is inaccurate.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +

Attachment Content-Type Size
crt.diff text/x-diff 8.1 KB

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Michael Paquier 2018-01-16 05:33:05 Re: Correction of intermediate certificate handling
Previous Message Scott Watson 2018-01-15 22:11:37 Re: initdb