Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UthiH-0000Cf-NB for pgsql-admin@arkaria.postgresql.org; Mon, 01 Jul 2013 17:16:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UthiH-00050G-6N for pgsql-admin@arkaria.postgresql.org; Mon, 01 Jul 2013 17:16:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UthiF-0004yo-Va for pgsql-admin@postgresql.org; Mon, 01 Jul 2013 17:16:28 +0000 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UthiC-0004ST-Ae for pgsql-admin@postgresql.org; Mon, 01 Jul 2013 17:16:27 +0000 Received: by mail-wi0-f169.google.com with SMTP id c10so4305923wiw.2 for ; Mon, 01 Jul 2013 10:16:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=D5Z3LbgjEY4yOzJjst+XqlebSvhgXoNmmaP2/eJdGek=; b=YG57NnzTs//+nxQxh0uzsvLo+aMc9syx/BPx7WsiqFE+fsXvRaR/yXBlstw18VGl4V 8hCQyFqdfV0t9sfLCwm3h3v76JjkzbEo9nfHD7ryb6QUR28Tpa05xw7u2h4LcI7mq5Eh 4eRgU8Mf0KoyViG4fBHC2FDWEl7XVKtQfr/KJBGkBExmMc0y7fhjWwbyeyA3CZGdF7bY SFhdNxtxaNHljJ3nV3R1oojgsz14gz/5VVGfuyZg6tvlxIxalB64A7zaldlR125xwqp0 1eRWBUbfnjTWvLXCRFAN3dVMtE9px1pRnx3ClMQSr6A0nueQUvRp+lBRgGDXUKS/L1xU ZpfA== MIME-Version: 1.0 X-Received: by 10.180.207.43 with SMTP id lt11mr12631696wic.57.1372698524848; Mon, 01 Jul 2013 10:08:44 -0700 (PDT) Received: by 10.194.84.66 with HTTP; Mon, 1 Jul 2013 10:08:44 -0700 (PDT) In-Reply-To: References: Date: Mon, 1 Jul 2013 19:08:44 +0200 Message-ID: Subject: Re: one client with multiple ssl cert connections to different databases From: Magnus Hagander To: Megan Cc: pgsql-admin Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnFII4XZZwdofcTI7TwNYNeknMPHHaNkRigq38gI0asd8Ec6SUahmqon7r6vrtlnP4EYPdJ X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Mon, Jul 1, 2013 at 7:03 PM, Megan wrote: > Good Day All > > > I setup my postgres servers to allow certificate authentication. Right now > I have two database servers and one application server. Users are only > allowed to connect into the application server, invoke psql, then connect > into which ever database server they want. I have the keys and certs for db > server 1 in their .postgresql folder under their home and it works fine, but > i can't figure out how to properly setup the environment so that they can > connect into either db server with the keys. I tried to merge the key/cert > files in their .postgresql directory with info for both db servers but that > didn't work. I feel like there is an obvious solution to this that I can't > see. Any ideas? They need to be in different files, and you can then control which file is used either on the connection string (sslcert, sslkey and similar parameters) or using environment variables (PGSSLCERT, PGSSLKEY) -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/ -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin