Skip to content

Commit

Permalink
Merge pull request #607 from nobu/certificate-verify-failure
Browse files Browse the repository at this point in the history
Relax error message check for OpenSSL 3.1
  • Loading branch information
nobu committed Mar 16, 2023
2 parents fbb24fd + fc4629d commit 94fb921
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/openssl/test_ssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1046,9 +1046,7 @@ def test_connect_certificate_verify_failed_exception_message
start_server(ignore_listener_error: true) { |port|
ctx = OpenSSL::SSL::SSLContext.new
ctx.set_params
# 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/) {
assert_raise_with_message(OpenSSL::SSL::SSLError, /certificate/) {
server_connect(port, ctx)
}
}
Expand Down

0 comments on commit 94fb921

Please sign in to comment.