Re: Force ssl connection

From: Muhammad Bashir Al-Noimi <mbnoimi(at)gmail(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Force ssl connection
Date: 2013-07-10 10:20:17
Message-ID: CABpATRsOYbZb+0FBfiW=pizG92gi+u1JAP4KJ6LzxgHqTFffyw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jul 10, 2013 at 12:16 PM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> requiressl=0 doesn't mean what you think it means, and that's one
> reason it has been deprecated since at least 8.2.
>
> requiressl=0 means "negotiate. use ssl if the server asks for it, but
> accept not using ssl". So this will connect without an error both with
> and without ssl.
>
> If you want to enforce ssl, use sslmode=require.
> If you want to enforce non-ssl, use sslmode=disable.

This is exactly what I'm looking for... thanks a lot it works perfectly.

--
Best Regards
Muhammad Bashir Al-Noimi

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2013-07-10 12:44:23 Re: Computing count of intersection of two queries (Relational Algebra --> SQL)
Previous Message Magnus Hagander 2013-07-10 10:16:33 Re: Force ssl connection