From a2ea2a31d77b9018f16b1891693a893adf82e951 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Tue, 17 Nov 2026 10:34:35 +0900 Subject: [PATCH] test: accept OpenSSL 3.0 TLSv1 rejection alert --- test/test_ssl.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_ssl.rb b/test/test_ssl.rb index c8372744..62bfa187 100644 --- a/test/test_ssl.rb +++ b/test/test_ssl.rb @@ -414,7 +414,9 @@ def test_disallow_tlsv1 @client.ssl_config.verify_mode = nil @client.get("https://localhost:#{serverport}/hello") end - assert_match(/tlsv1 alert protocol version/, ssle.message) + # OpenSSL 3.0 may reject TLSv1 with "no suitable signature algorithm", + # which sends an internal_error alert instead of protocol_version. + assert_match(/tlsv1 alert (?:protocol version|internal error)/, ssle.message) end end