Skip to content

Commit

Permalink
Revert "Relax error message check for OpenSSL 3.1"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rhenium committed Jun 7, 2023
1 parent 5113777 commit c309745
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/openssl/test_ssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,9 @@ def test_connect_certificate_verify_failed_exception_message
start_server(ignore_listener_error: true) { |port|
ctx = OpenSSL::SSL::SSLContext.new
ctx.set_params
assert_raise_with_message(OpenSSL::SSL::SSLError, /certificate/) {
# OpenSSL <= 1.1.0: "self signed certificate in certificate chain"
# OpenSSL >= 3.0.0: "self-signed certificate in certificate chain"
assert_raise_with_message(OpenSSL::SSL::SSLError, /self.signed/) {
server_connect(port, ctx)
}
}
Expand Down

0 comments on commit c309745

Please sign in to comment.