Re: [pgsql-hackers-win32] More SSL questions..

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: [pgsql-hackers-win32] More SSL questions..
Дата
Msg-id 41DC6823.7080506@opencloud.com
обсуждение исходный текст
Ответ на Re: [pgsql-hackers-win32] More SSL questions..  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [pgsql-hackers-win32] More SSL questions..  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Tom Lane wrote:

> BTW, as of CVS tip, if the server has a root.crt file and the client
> does not have any certificate files, the default behavior is that
> connections fail:
>
> $ psql -h localhost regression
> psql: could not open certificate file "/home/tgl/.postgresql/postgresql.crt": No such file or directory
> $
>
> I'm not sure if this is desirable.  Should libpq try to fall back to a
> non-SSL-encrypted connection, instead?

Only if the server certificate validates, otherwise an active attacker
could intercept the SSL connection to force libpq to fall back to
non-SSL and then intercept the unencrypted/unauthenticated connection.
Does openssl lets you detect a "server cert OK but no suitable client
cert provided" error easily?

-O

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [pgsql-hackers-win32] More SSL questions..
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: More SSL questions..