From: Christopher Head <chris2k01@hotmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5895: Ability to match more than just CN in client certificate
Date: Sun, 20 Feb 2011 22:30:35 GMT
Message-ID: <201102202230.p1KMUZKF023442@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 5895
Logged by: Christopher Head
Email address: chris2k01@hotmail.com
PostgreSQL version: 9.0.3
Operating system: Linux amd64
Description: Ability to match more than just CN in client certificate
Details:
This is a feature request/wishlist, not a bug. Right now, when using client
certificates over SSL for authentication, the username map maps from the
Subject Common Name field in the certificate to a username in the database.
It would be nice if matches could be done on a few other fields in the
certificate. For example, my name is not particularly unusual, so it's
reasonable that someone else in the world might (and probably does) have the
same name. That doesn't mean I want to give that person access to my
database, even if they also get a certificate from e.g. cacert.org!
A few fields to match on that would pretty much instantly close this hole
would be e-mail address and certificate serial number. While the e-mail
address suggestion could be generalized to match an arbitrary subset of the
subject's distinguished name fields (e.g. write something like
/O=FooOrg/CN=Christopher Head/ to require that both fields must be present
with the specified values), matching certificate serial number would be
slightly different as the serial number is not part of the distinguished
name. It would probably be the most secure field to match on, however, as no
CA will ever issue two certificates with the same serial number. E-mail
address would be a close second as an address can only be held by one
person, though it relies on the CA being able to verify the legitimate owner
of the address.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: chris2k01@hotmail.com
Subject: Re: BUG #5895: Ability to match more than just CN in client certificate
In-Reply-To: <201102202230.p1KMUZKF023442@wwwmaster.postgresql.org>
References: <201102202230.p1KMUZKF023442@wwwmaster.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox