pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Moench-Tegeder <cmt@burggraben.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Log the incoming old SSL certs by pid or any way
Date: Thu, 25 Jun 2020 12:24:07 +0200
Message-ID: <20200625102407.GA20342@elch.exwg.net> (raw)
In-Reply-To: <CAEcMXhnSE+Dss_LPjwsyTnw1t7Z64WayEuTbHiZvGgB_RAv4ng@mail.gmail.com>
References: <CAEcMXhnSE+Dss_LPjwsyTnw1t7Z64WayEuTbHiZvGgB_RAv4ng@mail.gmail.com>

## Durumdara (durumdara@gmail.com):

> Do we have chance to log somewhere the connected client's certificate, or
> some info about it?

There's pg_stat_ssl, and if you had an recent version of PostgreSQL
(9.6 is too old for that), you'd even have the serial number of
the certificate in there:
https://www.postgresql.org/docs/12/monitoring-stats.html#PG-STAT-SSL-VIEW

On the other hand, you could check the certificates directly,
e.g. https://github.com/matteocorti/check_ssl_cert or even
just some scripting around openssl. (That assumes that you know
where those client certificates are).

Regards,
Christoph

-- 
Spare Space





view thread (2+ messages)

Message-ID: <20200625102407.GA20342@elch.exwg.net>
Permalink:  ../20200625102407.GA20342@elch.exwg.net/
Also on:    postgresql.org/message-id/20200625102407.GA20342@elch.exwg.net

 · 

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: cmt@burggraben.net
  Subject: Re: Log the incoming old SSL certs by pid or any way
  In-Reply-To: <20200625102407.GA20342@elch.exwg.net>
  References: <CAEcMXhnSE+Dss_LPjwsyTnw1t7Z64WayEuTbHiZvGgB_RAv4ng@mail.gmail.com> <20200625102407.GA20342@elch.exwg.net>

* 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