Re: [PATCH] Accept IP addresses in server certificate SANs
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jacob Champion <pchampion@vmware.com>
Cc: "horikyota.ntt@gmail.com" <horikyota.ntt@gmail.com>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2022-03-27T21:19:27Z
Lists: pgsql-hackers
Jacob Champion <pchampion@vmware.com> writes: > [ v10-0001-Move-inet_net_pton-to-src-port.patch etc ] There is something broken about the ssl tests as modified by this patch. The cfbot doesn't provide a lot of evidence about why it's failing, but I applied the patchset locally and what I see is ... ok 47 - mismatch between host name and server certificate sslmode=verify-full: m atches Odd number of elements in hash assignment at /home/postgres/pgsql/src/test/ssl/t /SSL/Server.pm line 288. Use of uninitialized value in concatenation (.) or string at /home/postgres/pgsq l/src/test/ssl/t/SSL/Backend/OpenSSL.pm line 178. Use of uninitialized value in concatenation (.) or string at /home/postgres/pgsq l/src/test/ssl/t/SSL/Backend/OpenSSL.pm line 178. ### Restarting node "primary" # Running: pg_ctl -w -D /home/postgres/pgsql/src/test/ssl/tmp_check/t_001_ssltes ts_primary_data/pgdata -l /home/postgres/pgsql/src/test/ssl/tmp_check/log/001_ss ltests_primary.log restart waiting for server to shut down.... done server stopped waiting for server to start.... stopped waiting pg_ctl: could not start server The tail end of the server log is 2022-03-27 17:13:11.482 EDT [551720] FATAL: could not load server certificate file ".crt": No such file or directory so it seems pretty clear that something's fouling up computation of a certificate file name. This may be caused by 9ca234bae or 4a7e964fc. regards, tom lane
Commits
-
libpq: Allow IP address SANs in server certificates
- c1932e542863 15.0 landed
-
Add SSL tests for IP addresses in certificates
- af9e18049550 15.0 landed
-
Make JSON path numeric literals more correct
- e26114c817b6 15.0 cited