Re: SSL and USER_CERT_FILE

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: SSL and USER_CERT_FILE
Дата
Msg-id 482C401D.6030808@dunslane.net
обсуждение исходный текст
Ответ на SSL and USER_CERT_FILE  ("Mark Woodward" <pgsql@mohawksoft.com>)
Ответы Re: SSL and USER_CERT_FILE  (pgsql@mohawksoft.com)
Список pgsql-hackers

Mark Woodward wrote:
> I am using PostgreSQL's SSL support and the conventions for the key and
> certifications don't make sense from the client perspective. Especially
> under Windows.
>
> I am proposing a few simple changes:
>
> Adding two API
> void PQsetSSLUserCertFileName(char *filename)
> {
>     user_crt_filename = strdup(filename);
> }
> PQsetSSLUserKeyFileName(char *filename)
> {
>     user_key_filename = strdup(filename);
> }
>
>
>   
[snip]
> Any comments?
>
>   


I think it would probably be much better to allow for some environment 
variables to specify the locations of the client certificate and key 
(and the CA cert and CRL) - c.f. PGPASSFILE.

That way not only could these be set by C programs but by any libpq user 
(I'm sure driver writers who use libpq don't want to have to bother with 
this stuff.) And we wouldn't need to change the API at all.

cheers

andrew


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

Предыдущее
От: "Mark Woodward"
Дата:
Сообщение: SSL and USER_CERT_FILE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [rfc,patch] PL/Proxy in core