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

From Oliver Jowett
Subject Re: [pgsql-hackers-win32] More SSL questions..
Date
Msg-id 41DC6823.7080506@opencloud.com
Whole thread Raw
In response to Re: [pgsql-hackers-win32] More SSL questions..  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [pgsql-hackers-win32] More SSL questions..  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [pgsql-hackers-win32] More SSL questions..
Next
From: Bruce Momjian
Date:
Subject: Re: More SSL questions..