Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8v0U-0003DL-OV for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 15:57:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U8v0T-0007Uz-UQ for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 15:57:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8v0S-0007Ut-RS for pgsql-general@postgresql.org; Fri, 22 Feb 2013 15:57:52 +0000 Received: from mail-pa0-f44.google.com ([209.85.220.44]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8v0M-0008Rp-Cp for pgsql-general@postgresql.org; Fri, 22 Feb 2013 15:57:52 +0000 Received: by mail-pa0-f44.google.com with SMTP id kp1so545746pab.3 for ; Fri, 22 Feb 2013 07:57:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ZrP3SMUqjMj1fFzvSMBnnjjSI1nyzmCduXw3g4+PK8I=; b=xzQUXJkqPe9tz2XsNvsWRLj58/TSgF8tw0tsG2IFKrvznAqLDCQNft+p/4UdxAvmhW VM3eKtTGB4cQGOebk6GeqVto4MhScjXCCm0ODKkUPxL/dSDzw4pR1G+Ifv995/gYnfpt UknjpP4g9oj2+rS70fusgDPilOu2Ism5o/PTXnF9qTD+fQc6IaUm0IZvCbD/zima0qPY nzXGvjmpx1jVNiCTfGhMya/WujPKJbS6iV87DfulRiauBTxDy2HviPzQwUeDGsfAm519 /bTrk056EXkASWgQMEQZnQ/d7jl4IUGKcfM2lor+8Tcds3NKIVQYoXX+wIT+2G5dbH48 2T8A== X-Received: by 10.68.8.69 with SMTP id p5mr3717788pba.212.1361548664451; Fri, 22 Feb 2013 07:57:44 -0800 (PST) Received: from [192.168.0.2] (c-24-17-164-54.hsd1.wa.comcast.net. [24.17.164.54]) by mx.google.com with ESMTPS id a10sm2901824pbq.29.2013.02.22.07.57.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Feb 2013 07:57:43 -0800 (PST) Message-ID: <51279576.1080102@gmail.com> Date: Fri, 22 Feb 2013 07:57:42 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Maz Mohammadi CC: John R Pierce , "pgsql-general@postgresql.org" Subject: Re: confirming security. References: <9F992F0A0D9BA04F914597F75435942D09575EB6B2@MBX36.exg5.exghost.com> <5126EE15.8030402@hogranch.com> <9F992F0A0D9BA04F914597F75435942D09576C4DCF@MBX36.exg5.exghost.com> In-Reply-To: <9F992F0A0D9BA04F914597F75435942D09576C4DCF@MBX36.exg5.exghost.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 02/22/2013 07:50 AM, Maz Mohammadi wrote: > Thx John, > > It got me a long way. I actually have a more complex installation (I > think) that I originally thought on my test linux box. Looks like all > the files that I modify are under /var/lib/post../coord. > > I added the line.. to pg_hba.conf > > hostssl all all 127.0.0.1/32 cert > > and after restarting the coordinator node, it errored because I had to > modify postgresql.conf (ssl=off) . So I feel that the server is now > running in SSL mode. > > But when I used psql…I’m getting this…. > > ============== > > postgres-xc@adminuser-VirtualBox:~/coord$ psql -h localhost testdb > > psql (PGXC 1.0.0, based on PG 9.1.4) > > SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) > > Type "help" for help. > > testdb=# select 2+2; > > ?column? > > ---------- > > 4 > > (1 row) > > testdb=# \q > > ============== > > It’s telling me it’s through an SSL connection, but I didn’t specify any > keystore on my side for psql? Does it pick it up from somewhere? > > Any help is greatly appreciated J > > Postgresql isn’t half bad ;) > Is the above line from pg_hba.conf the only one in the file? If not could you post the entire file contents? Remember in pg_hba.conf first match wins. -- Adrian Klaver adrian.klaver@gmail.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general