Re: SSL and md5 password? - Mailing list pgsql-admin

From Peter Koczan
Subject Re: SSL and md5 password?
Date
Msg-id 4544e0330810292026j1b8e9307j62d6a9c828c7a6b5@mail.gmail.com
Whole thread Raw
In response to Re: SSL and md5 password?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SSL and md5 password?
List pgsql-admin
On Wed, Oct 29, 2008 at 1:49 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> According to this, you're trying to connect with SSL off, right?  I
> don't think you've got any matching lines for that in your
> pg_hba.conf.  But I could be reading that wrong.

Well, psql is trying to connect with SSL off even though postgres was
built with SSL support, the server has SSL turned on, and psql
connects with SSL by default for Kerberos connections. Where I was
getting confused was that, for some reason, md5 authentication wasn't
using SSL (or at least that's what the error suggested) and the only
thing I changed was what user/auth-method I was using.

On Wed, Oct 29, 2008 at 9:11 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
>> libpq tries to connect with SSL on and then falls back to SSL off.  If
>> the latter fails, the error message from the first attempt has been
>> overwritten, and only the second one is logged.
>> This has been fixed by Magnus on CVS HEAD.
>
> Right.  So in the meantime, what Peter should do is try the problem case
> after
>        export PGSSLMODE=require
> so that he can see the error message that's relevant to his desired use.

After exporting that environment variable, it works. Thanks.

Peter

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: SSL and md5 password?
Next
From: Tom Lane
Date:
Subject: Re: SSL and md5 password?