X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 09A833A5DAE for ; Sun, 5 Dec 2004 17:04:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19447-06 for ; Sun, 5 Dec 2004 17:04:08 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 169C13A5CEE for ; Sun, 5 Dec 2004 17:04:07 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id iB5H40xJ027887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 5 Dec 2004 10:04:02 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id iB5H3xwh025840; Sun, 5 Dec 2004 10:03:59 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id iB5H3xg5025839; Sun, 5 Dec 2004 10:03:59 -0700 (MST) (envelope-from mfuhr) Date: Sun, 5 Dec 2004 10:03:59 -0700 From: Michael Fuhr To: Andrew M Cc: pgsql-general@postgresql.org Subject: Re: SSL confirmation Message-ID: <20041205170358.GA14063@winnie.fuhr.org> References: <7B8F2685-46D8-11D9-BFCB-0003938366A4@jibeya.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7B8F2685-46D8-11D9-BFCB-0003938366A4@jibeya.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/283 X-Sequence-Number: 69895 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/