Re: Log the incoming old SSL certs by pid or any way

Поиск
Список
Период
Сортировка
От Christoph Moench-Tegeder
Тема Re: Log the incoming old SSL certs by pid or any way
Дата
Msg-id 20200625102407.GA20342@elch.exwg.net
обсуждение исходный текст
Ответ на Log the incoming old SSL certs by pid or any way  (Durumdara <durumdara@gmail.com>)
Список pgsql-general
## 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



В списке pgsql-general по дате отправления:

Предыдущее
От: Patrick FICHE
Дата:
Сообщение: RE: PostGreSQL TDE encryption patch
Следующее
От: "Bhalodiya, Chirag"
Дата:
Сообщение: Re: PostGreSQL TDE encryption patch