Re: Client certificate authentication

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Client certificate authentication
Дата
Msg-id FE56887E-B4A6-4328-AB32-1AA9C65FD221@hagander.net
обсуждение исходный текст
Ответ на Client certificate authentication  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Client certificate authentication  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Client certificate authentication  ("Alex Hunsaker" <badalex@gmail.com>)
Список pgsql-hackers
On 16 nov 2008, at 01.00, "Alex Hunsaker" <badalex@gmail.com> wrote:

> On Thu, Nov 13, 2008 at 05:31, Magnus Hagander <magnus@hagander.net>  
> wrote:
>> Attached patch implements client certificate authentication.
>>
>> I kept this sitting in my tree without sending it in before the
>> commitfest because it is entirely dependent on the
>> not-yet-reviewed-and-applied patch for how to configure client
>> certificate requesting. But now that I learned how to do it right in
>> git, breaking it out was very easy :-) Good learning experience.
>>
>> Anyway. Here it is. Builds on top of the "clientcert option for  
>> pg_hba"
>> patch already on the list.
>
> Patch looks good to me and works as described.
>
> Would cncert be a better auth_method name? As later we might have
> different types of ssl client cert authentication??

If/when I'd rather still call it cert, and use an authentication  
option to control which field is matched against.


> My only concern is there is no way to specify the USER_CERT_FILE for
> libpq.  So if for example I have two users that I want to use cert
> authentication for I really have to have to users on the system (or i
> guess maybe you could fake HOME=... psql -U other_user).   Or am I

While not directly related to this patch, that is a very good point.  
We have PGSSLKEY but not PGSSLCERT. Could certainly be worth adding.


>
> missing a way around this? (granted this might be a non-issue for now
> as you can use trust clientcert=1 in pg_hba.conf with your other
> patch?)

Yes, you can use that but the usecase is extremely limited. It only  
works if these are the *only* two users with certificates...

-Magnus


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Stack trace
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Block-level CRC checks