diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2023-06-07 16:15:29 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2023-06-07 16:20:26 +0900 |
commit | c309745eb82759c475bc9cc45f913f0bd1e3d99a (patch) | |
tree | 3767ea55c259eb8168d37f9d7de45e231d796d75 /test | |
parent | 5113777e82716dbbfe294d8b65daca2535c0dc1f (diff) | |
download | ruby-openssl-c309745eb82759c475bc9cc45f913f0bd1e3d99a.tar.gz |
Revert "Relax error message check for OpenSSL 3.1"ky/ssl-connect-verify-error-ssl-error-syscall
This reverts commit fc4629d246f2bc92c8c3e9b4352841ae0e95eecc.
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/openssl/test_ssl.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index db76f1dc..c80168f2 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -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) } } |