pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Rob Sargent <robjsargent@gmail.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: certs in connection string
Date: Mon, 15 Feb 2021 16:23:41 +0100
Message-ID: <8adec105140aebabf0814880fd88d3ed8fac8c3e.camel@cybertec.at> (raw)
In-Reply-To: <89C60392-DFF9-4C1A-BB0D-DD54608F2AA5@gmail.com>
References: <89C60392-DFF9-4C1A-BB0D-DD54608F2AA5@gmail.com>

On Sat, 2021-02-13 at 09:57 -0700, Rob Sargent wrote:
> I’m confused, as usual, about using a cert in a connection string.  I wish to connect form a
>  “middle ware” piece to PG on be half of various clients.  Does each client need a corresponding
>  cert/key or is the certification intended to say the sending machine is who it says it is
>  (thereby needing only one cert)

They can share one certificate.

https://www.postgresql.org/docs/current/auth-cert.html:

  When using this authentication method, the server will require that the client provide a valid,
  trusted certificate. No password prompt will be sent to the client. The cn (Common Name)
  attribute of the certificate will be compared to the requested database user name, and if they
  match the login will be allowed.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (3+ messages)  latest in thread

Message-ID: <8adec105140aebabf0814880fd88d3ed8fac8c3e.camel@cybertec.at>
Permalink:  ../8adec105140aebabf0814880fd88d3ed8fac8c3e.camel@cybertec.at/
Also on:    postgresql.org/message-id/8adec105140aebabf0814880fd88d3ed8fac8c3e.camel@cybertec.at

 · 

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-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, robjsargent@gmail.com
  Subject: Re: certs in connection string
  In-Reply-To: <8adec105140aebabf0814880fd88d3ed8fac8c3e.camel@cybertec.at>
  References: <89C60392-DFF9-4C1A-BB0D-DD54608F2AA5@gmail.com> <8adec105140aebabf0814880fd88d3ed8fac8c3e.camel@cybertec.at>

* 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