From: Michael Fuhr <mike@fuhr.org>
To: Andrew M <andrew@jibeya.com>
Cc: pgsql-general@postgresql.org
Subject: Re: SSL confirmation
Date: Sun, 5 Dec 2004 10:03:59 -0700
Message-ID: <20041205170358.GA14063@winnie.fuhr.org> (raw)
In-Reply-To: <7B8F2685-46D8-11D9-BFCB-0003938366A4@jibeya.com>
References: <7B8F2685-46D8-11D9-BFCB-0003938366A4@jibeya.com>
On Sun, Dec 05, 2004 at 04:12:38PM +0000, Andrew M wrote:
> I am running postgreSQL and just wanted to know how I confirm that SSL
> is fully functional? I have placed server.key, server.crt and root.crt
> in the data folder and am able to launch postgreSQL with no problems. I
> m launching postgreSQl with the following command:
>
> /usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data
You can omit the -i if you have "tcpip_socket = true" (or set
listen_address if you're using 8.0) in postgresql.conf
> Is that sufficient to start SSL, how can I check?
You should have "ssl = true" in postgresql.conf (restart the backend
after making a change). When you make an SSL connection with psql,
psql should print a message like the following:
SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
Make sure you're using a TCP connection instead of a local (Unix-domain)
connection. You can use psql's -h option or the PGHOST environment
variable to force a TCP connection (e.g., psql -h localhost).
See also the hostssl and hostnossl connection types in pg_hba.conf.
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
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-jdbc@postgresql.org
Cc: mike@fuhr.org, andrew@jibeya.com, pgsql-general@postgresql.org
Subject: Re: SSL confirmation
In-Reply-To: <20041205170358.GA14063@winnie.fuhr.org>
References: <7B8F2685-46D8-11D9-BFCB-0003938366A4@jibeya.com> <20041205170358.GA14063@winnie.fuhr.org>
* 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