Re: [PATCH] Add `verify-system` sslmode to use system CA pool for server cert
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Jacob Champion <jchampion@timescale.com>,
Daniel Gustafsson <daniel@yesql.se>
Cc: "Gregory Stark (as CFM)" <stark.cfm@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>,
Magnus Hagander <magnus@hagander.net>, Michael Paquier
<michael@paquier.xyz>, thomas@habets.se, Tom Lane <tgl@sss.pgh.pa.us>,
Bruce Momjian <bruce@momjian.us>, Andrew Dunstan <andrew@dunslane.net>,
Jelte Fennema <postgres@jeltef.nl>
Date: 2023-04-12T07:11:41Z
Lists: pgsql-hackers
On 05.04.23 23:29, Jacob Champion wrote: > On Wed, Apr 5, 2023 at 2:27 PM Daniel Gustafsson <daniel@yesql.se> wrote: >> I squashed and pushed v10 with a few small comment tweaks for typos and some >> pgindenting. Thanks! > > Thank you very much! This patch (8eda731465) makes the ssl tests fail for me: not ok 121 - sslrootcert=system does not connect with private CA: matches # Failed test 'sslrootcert=system does not connect with private CA: matches' # at t/001_ssltests.pl line 479. # 'psql: error: connection to server at "127.0.0.1", port 53971 failed: SSL SYSCALL error: Undefined error: 0' # doesn't match '(?^:SSL error: certificate verify failed)' This is with OpenSSL 3.1.0 from macOS/Homebrew. If I instead use OpenSSL 1.1.1t, then the tests pass.
Commits
-
ci: Remove OpenSSL 3.1 workaround for missing system CA
- c5e4ec293ea5 16.0 landed
-
Fix errormessage for missing system CA in OpenSSL 3.1
- 0b5d1fb36add 16.0 landed
-
Add MacPorts support to src/test/ldap tests.
- 9517e6e1dd60 11.20 landed
-
Allow to use system CA pool for certificate verification
- 8eda73146527 16.0 landed