Skip to content

Commit c309745

Browse files
committed
Revert "Relax error message check for OpenSSL 3.1"
This reverts commit fc4629d. The test case "test_connect_certificate_verify_failed_exception_message" does want to check the reason behind a certificate verification failure to be included in the exception message.
1 parent 5113777 commit c309745

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/openssl/test_ssl.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,9 @@ def test_connect_certificate_verify_failed_exception_message
10461046
start_server(ignore_listener_error: true) { |port|
10471047
ctx = OpenSSL::SSL::SSLContext.new
10481048
ctx.set_params
1049-
assert_raise_with_message(OpenSSL::SSL::SSLError, /certificate/) {
1049+
# OpenSSL <= 1.1.0: "self signed certificate in certificate chain"
1050+
# OpenSSL >= 3.0.0: "self-signed certificate in certificate chain"
1051+
assert_raise_with_message(OpenSSL::SSL::SSLError, /self.signed/) {
10501052
server_connect(port, ctx)
10511053
}
10521054
}

0 commit comments

Comments
 (0)