git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b670b93) | patch
Add notBefore and notAfter to SSL cert info display
2024年3月22日 20:25:25 +0000 (21:25 +0100)
2024年3月22日 20:25:25 +0000 (21:25 +0100)
commit 6acb0a628eccab8764e0306582c2b7e2a1441b9b
Add notBefore and notAfter to SSL cert info display

This adds the X509 attributes notBefore and notAfter to sslinfo
as well as pg_stat_ssl to allow verifying and identifying the
validity period of the current client certificate. OpenSSL has
APIs for extracting notAfter and notBefore, but they are only
supported in recent versions so we have to calculate the dates
by hand in order to make this work for the older versions of
OpenSSL that we still support.

Original patch by Cary Huang with additional hacking by Jacob
and myself.

Author: Cary Huang <cary.huang@highgo.ca>
Co-author: Jacob Champion <jacob.champion@enterprisedb.com>
Co-author: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/182b8565486.10af1a86f158715.2387262617218380588@highgo.ca
19 files changed:
contrib/sslinfo/Makefile diff | blob | blame | history
contrib/sslinfo/meson.build diff | blob | blame | history
contrib/sslinfo/sslinfo--1.2--1.3.sql [new file with mode: 0644] blob
contrib/sslinfo/sslinfo.c diff | blob | blame | history
contrib/sslinfo/sslinfo.control diff | blob | blame | history
doc/src/sgml/monitoring.sgml diff | blob | blame | history
doc/src/sgml/sslinfo.sgml diff | blob | blame | history
src/backend/catalog/system_views.sql diff | blob | blame | history
src/backend/libpq/be-secure-openssl.c diff | blob | blame | history
src/backend/utils/activity/backend_status.c diff | blob | blame | history
src/backend/utils/adt/pgstatfuncs.c diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
src/include/catalog/pg_proc.dat diff | blob | blame | history
src/include/libpq/libpq-be.h diff | blob | blame | history
src/include/utils/backend_status.h diff | blob | blame | history
src/test/regress/expected/rules.out diff | blob | blame | history
src/test/ssl/t/001_ssltests.pl diff | blob | blame | history
src/test/ssl/t/003_sslinfo.pl diff | blob | blame | history
src/tools/pgindent/typedefs.list diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /