Re: [PATCH] Add `verify-system` sslmode to use system CA pool for server cert

From: Greg Stark <stark(at)mit(dot)edu>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Jacob Champion <jchampion(at)timescale(dot)com>, "Gregory Stark (as CFM)" <stark(dot)cfm(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, Michael Paquier <michael(at)paquier(dot)xyz>, thomas(at)habets(dot)se, Bruce Momjian <bruce(at)momjian(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Jelte Fennema <postgres(at)jeltef(dot)nl>
Subject: Re: [PATCH] Add `verify-system` sslmode to use system CA pool for server cert
Date: 2023-04-13 01:34:09
Message-ID: CAM-w4HM8twdcguQKbhvhJR-tRWFkhC05Ga4fWp+c8tWrxZKHPQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Apr 12, 2023, 19:30 Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:
>
> The issue we have is that we cannot get PGconn in
> verify_cb so logging an error is tricky.

Hm, the man page talks about a "ex_data mechanism" which seems to be
referring to this Rube Goldberg device
https://www.openssl.org/docs/man3.1/man3/SSL_get_ex_data.html

It looks like X509_STORE_CTX_set_app_data() and
X509_STORE_CTX_get_app_data() would be convenience macros to do this.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2023-04-13 02:00:31 Re: Issue in postgres_fdw causing unnecessary wait for cancel request reply
Previous Message Kyotaro Horiguchi 2023-04-13 01:29:38 Re: Bufmgr possible overflow