[ruby/openssl] Revert "Relax error message check for OpenSSL 3.1"
This reverts commit https://github.com/ruby/openssl/commit/fc4629d246f2. 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. https://github.com/ruby/openssl/commit/c309745eb8
This commit is contained in:
parent
cb344e4e25
commit
4465941e68
@ -1046,7 +1046,9 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user