pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: Megan <nagemnna@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: one client with multiple ssl cert connections to different databases
Date: Mon, 1 Jul 2013 19:08:44 +0200
Message-ID: <CABUevEz+9_EjtAtd3Wqe62-dPQLUnzQuB_HHHFDHC6JtnCtabg@mail.gmail.com> (raw)
In-Reply-To: <CACMA5-zx1EDA7tfkydbVeBTq88hFUcb4Jwq9aFYfw-Q6pMF-gQ@mail.gmail.com>
References: <CACMA5-zx1EDA7tfkydbVeBTq88hFUcb4Jwq9aFYfw-Q6pMF-gQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Mon, Jul 1, 2013 at 7:03 PM, Megan <nagemnna@gmail.com> 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



view thread (2+ messages)

Message-ID: <CABUevEz+9_EjtAtd3Wqe62-dPQLUnzQuB_HHHFDHC6JtnCtabg@mail.gmail.com>
Permalink:  ../CABUevEz+9_EjtAtd3Wqe62-dPQLUnzQuB_HHHFDHC6JtnCtabg@mail.gmail.com/
Also on:    postgresql.org/message-id/CABUevEz+9_EjtAtd3Wqe62-dPQLUnzQuB_HHHFDHC6JtnCtabg@mail.gmail.com

 · 

reply

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-admin@postgresql.org
  Cc: magnus@hagander.net, nagemnna@gmail.com
  Subject: Re: one client with multiple ssl cert connections to different databases
  In-Reply-To: <CABUevEz+9_EjtAtd3Wqe62-dPQLUnzQuB_HHHFDHC6JtnCtabg@mail.gmail.com>
  References: <CACMA5-zx1EDA7tfkydbVeBTq88hFUcb4Jwq9aFYfw-Q6pMF-gQ@mail.gmail.com> <CABUevEz+9_EjtAtd3Wqe62-dPQLUnzQuB_HHHFDHC6JtnCtabg@mail.gmail.com>

* 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