pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: hehe88hk@yahoo.com.hk
Cc: pgsql-admin@postgresql.org
Subject: Re: forcing SSL
Date: Sun, 15 Feb 2004 00:26:59 -0500
Message-ID: <5586.1076822819@sss.pgh.pa.us> (raw)
In-Reply-To: <f2ccb7a1.0402141113.74e7fe11@posting.google.com>
References: <f2ccb7a1.0402141113.74e7fe11@posting.google.com>

hehe88hk@yahoo.com.hk (Eric) writes:
> In order to ensure all user are making SSL connection to the database,
> in the file pg_hba.conf, I change all the first columns into "hostssl"
> such that there is neither "host" nor "local" left.

> However, when I try to use a program written in Tcl to access the
> database, even without the option "requiressl=1" for "pg_connect", the
> program can still make connection to the database.

Is this a local-Unix-socket connection?  We don't bother with SSL on
such connections.  There's no point --- the only way to eavesdrop on
a local connection is to have broken into your kernel, at which point
it's game over anyway.

			regards, tom lane

PS: it also occurs to me you might have forgotten to SIGHUP the
postmaster after editing pg_hba.conf...



view thread (2+ messages)

Message-ID: <5586.1076822819@sss.pgh.pa.us>
Permalink:  ../5586.1076822819@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5586.1076822819@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hehe88hk@yahoo.com.hk
  Subject: Re: forcing SSL
  In-Reply-To: <5586.1076822819@sss.pgh.pa.us>
  References: <f2ccb7a1.0402141113.74e7fe11@posting.google.com> <5586.1076822819@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox