Re: Trust intermediate CA for client certificates

From: Ian Pilcher <arequipeno(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>, Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Craig Ringer <craig(at)2ndquadrant(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, 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:13:43
Message-ID: 529CE9F7.6090300@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 12/02/2013 02:01 PM, Andrew Dunstan wrote:
> AIUI, you need a complete chain from one end to the other. So the cert
> being checked can include the intermediate cert in what it sends, or it
> can be in the root.crt at the other end, but one way or another, the
> checking end needs a complete chain from a root cert to the cert from
> the other end.

Yes. And the problem is that there is no way to prevent OpenSSL from
accepting intermediate certificates supplied by the client. As a
result, the server cannot accept client certificates signed by one
intermediate CA without also accepting *any* client certificate that can
present a chain back to the root CA.

Frankly, this whole conversation reinforces my belief that this behavior
is so counter-intuitive that it really should be changed.

GnuTLS for the win?

--
========================================================================
Ian Pilcher arequipeno(at)gmail(dot)com
Sent from the cloud -- where it's already tomorrow
========================================================================

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2013-12-02 20:14:20 Re: Help ! FAILOVER with Slony-I.
Previous Message Tom Lane 2013-12-02 20:07:48 Re: Trust intermediate CA for client certificates

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2013-12-02 20:15:01 Re: Extension Templates S03E11
Previous Message Tom Lane 2013-12-02 20:07:48 Re: Trust intermediate CA for client certificates