Re: Trust intermediate CA for client certificates

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Craig Ringer <craig(at)2ndquadrant(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Ian Pilcher <arequipeno(at)gmail(dot)com>, stellr(at)vt(dot)edu, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Trust intermediate CA for client certificates
Date: 2013-12-02 20:07:48
Message-ID: 20706.1386014868@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> On Mon, Dec 2, 2013 at 12:59:41PM -0500, Tom Lane wrote:
>> I see that you removed the sentence
>> The root
>> certificate should be included in every case where
>> <filename>postgresql.crt</> contains more than one certificate.

> I don't fully understand the issues but the discussion seens to indicate
> this. Am I missing something? Should I run some tests?

My recollection is that if the client cert file includes *only* the
client's own cert, the server will puzzle out how that connects to the
certs it has. However, if the client cert file contains more than one
cert (ie, client's cert and some intermediate-CA cert), the server
will *not* try to associate the intermediate cert with some root cert it
has. It wants the chain the client sends to terminate in a cert that it
has listed directly in root.crt.

It's possible that my recollection is faulty, or that this behavior was
a bug that's been fixed in more recent OpenSSL versions. If it's the
latter, though, I hesitate to tell people they can rely on the corrected
behavior. The text in question is from May 2010, and I would've been
testing on whatever OpenSSL version was then current in Fedora, so it
would hardly be a version that's disappeared from the wild.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ian Pilcher 2013-12-02 20:13:43 Re: Trust intermediate CA for client certificates
Previous Message Andrew Dunstan 2013-12-02 20:01:25 Re: Trust intermediate CA for client certificates

Browse pgsql-hackers by date

  From Date Subject
Next Message Ian Pilcher 2013-12-02 20:13:43 Re: Trust intermediate CA for client certificates
Previous Message Dimitri Fontaine 2013-12-02 20:02:17 Re: Extension Templates S03E11