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

From Magnus Hagander
Subject Re: [PATCH] Add `verify-system` sslmode to use system CA pool for server cert
Date
Msg-id CABUevExo2+xFf0Fd=WgNrCEDi69MPefAyxb0dxeB5uJfS4Y2PQ@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Add `verify-system` sslmode to use system CA pool for server cert  (Jacob Champion <jchampion@timescale.com>)
Responses Re: [PATCH] Add `verify-system` sslmode to use system CA pool for server cert
List pgsql-hackers
On Wed, Jan 11, 2023 at 6:27 PM Jacob Champion <jchampion@timescale.com> wrote:
On Wed, Jan 11, 2023 at 6:37 AM Jelte Fennema <postgres@jeltef.nl> wrote:
>
> LGTM. As far as I can tell this is ready for a committer.

Thanks for the reviews!

Sorry to jump in (very) late in this game. So first, I like this general approach :)

It feels icky to have to add configure tests just to make a test work. But I guess there isn't really a way around that if we want to test the full thing.

However, shouldn't we be using X509_get_default_cert_file_env() to get the name of the env? Granted it's  unlikely to be anything else, but if it's an API you're supposed to use. (In an ideal world that function would not return anything in LibreSSL but I think it does include something, and then just ignores it?)

--

pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: Remove source code display from \df+?
Next
From: Isaac Morland
Date:
Subject: Re: Remove source code display from \df+?