Test: adapt 024.cert_auth test to OpenSSL 3.2.
authorTatsuo Ishii <ishii@postgresql.org>
Mon, 25 Nov 2024 09:01:34 +0000 (18:01 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Mon, 25 Nov 2024 23:13:17 +0000 (08:13 +0900)
In the test we check the error message when the target certificate is
revoked.  Unfortunately the error message from OpenSSL seems to be
changed from v3.0 to v3.2.

v3.0 or before: "sslv3 alert certificate revoked"
v3.2: "ssl/tls alert certificate revoked"

So fix is checking only "alert certificate revoked" part.

src/test/regression/tests/024.cert_auth/test.sh

index c434b2bbddefd5c709c56f1406bc76375d51f820..16e7d50219614ebb17bd0b1ce145b98000e640cb 100755 (executable)
@@ -139,7 +139,7 @@ export PGSSLROOTCERT=$dir/$ROOT_CRT
 
 $PSQL -h localhost -c "select 1" test > $dir/crl_session.log  2>&1
 
-grep "sslv3 alert certificate revoked" $dir/crl_session.log
+grep "alert certificate revoked" $dir/crl_session.log
 
 if [ $? != 0 ];then
     echo "Checking cert auth between Pgpool-II and frontend with revoked entry in CRL failed."