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 09:16:45 +0000 (18:16 +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 8f5082a0a5b311e4d28350af623c82511fb47dd2..4d7a280b5c2e4420f342f5343274c6a154359fd9 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."