8000 [ruby/openssl] Relax error message check for OpenSSL 3.1 · ruby/ruby@2864f06 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2864f06

Browse files
nobuhsbt
authored andcommitted
[ruby/openssl] Relax error message check for OpenSSL 3.1
A tentative measures fo ruby/openssl#606. With OpenSSL 3.1.0, the error message at connection using "self-signed certificate" seems to return `SSL_R_TLSV1_ALERT_UNKNOWN_CA` instead of `SSL_R_CERTIFICATE_VERIFY_FAILED`. ruby/openssl@fc4629d246
1 parent 3e4289c commit 2864f06

File tree

Expand file tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/openssl/test_ssl.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -998,9 +998,7 @@ def test_connect_certificate_verify_failed_exception_message
998998
start_server(ignore_listener_error: true) { |port|
999999
ctx = OpenSSL::SSL::SSLContext.new
10001000
ctx.set_params
1001-
# OpenSSL <= 1.1.0: "self signed certificate in certificate chain"
1002-
# OpenSSL >= 3.0.0: "self-signed certificate in certificate chain"
1003-
assert_raise_with_message(OpenSSL::SSL::SSLError, /self.signed/) {
1001+
assert_raise_with_message(OpenSSL::SSL::SSLError, /certificate/) {
10041002
server_connect(port, ctx)
10051003
}
10061004
}

0 commit comments

Comments
 (0)
0