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 5CA473A4D65 for ; Sun, 5 Dec 2004 20:39:30 +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 67476-05 for ; Sun, 5 Dec 2004 20:39:18 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id F244D3A2307 for ; Sun, 5 Dec 2004 20:39:19 +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 iB5KdDTa028064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 5 Dec 2004 13:39:15 -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 iB5KdDjX046966; Sun, 5 Dec 2004 13:39:13 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id iB5KdCae046965; Sun, 5 Dec 2004 13:39:12 -0700 (MST) (envelope-from mfuhr) Date: Sun, 5 Dec 2004 13:39:12 -0700 From: Michael Fuhr To: Andrew M Cc: pgsql-general@postgresql.org Subject: Re: SSL confirmation Message-ID: <20041205203912.GA46867@winnie.fuhr.org> References: <7B8F2685-46D8-11D9-BFCB-0003938366A4@jibeya.com> <333EE0F2-46DE-11D9-BFCB-0003938366A4@jibeya.com> <87r7m4isom.fsf@gate450.dyndns.org> <3E054141-46E4-11D9-8B7A-0003938366A4@jibeya.com> <87k6rwiq2a.fsf@gate450.dyndns.org> <20041205182757.GA46671@winnie.fuhr.org> <20041205190233.GA31145@gp.word-to-the-wise.com> <20041205192733.GA4596@winnie.fuhr.org> <20041205194134.GA31951@winnie.fuhr.org> <48FFB86A-46F9-11D9-8BA6-0003938366A4@jibeya.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48FFB86A-46F9-11D9-8BA6-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/299 X-Sequence-Number: 69911 On Sun, Dec 05, 2004 at 08:07:26PM +0000, Andrew M wrote: > are you saying I need to do: > > 'select * from myTable where x=y sslmode=require' > > to make a request to the database a secure one? If so, as I am using > Hibernate, do you know how I would alter my maps to reflect this? No, "sslmode=require" would be part of the string that gets passed to libpq's PQconnectdb() or its ilk, i.e., the functions that make the initial connection to the database. If you're using an abstraction layer that sits above libpq or an interface that implements the communications protocol without using libpq, then you may or may not have a way to specify such connection options. Check your interface's documentation. If your interface sits above libpq but doesn't allow you to specify connection options like "sslmode=require", then setting environment variables might still work. See the "Environment Variables" section of the "libpq - C Library" chapter in the PostgreSQL documentation. -- Michael Fuhr http://www.fuhr.org/~mfuhr/