File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -676,10 +676,16 @@ def test_post_connection_check_wildcard_san
676676 # buzz.example.net, respectively). ...
677677 assert_equal ( true , OpenSSL ::SSL . verify_certificate_identity (
678678 create_cert_with_san ( 'DNS:baz*.example.com' ) , 'baz1.example.com' ) )
679+
680+ # LibreSSL 3.5.0+ doesn't support other wildcard certificates
681+ # (it isn't required to, as RFC states MAY, not MUST)
682+ return if libressl? ( 3 , 5 , 0 )
683+
679684 assert_equal ( true , OpenSSL ::SSL . verify_certificate_identity (
680685 create_cert_with_san ( 'DNS:*baz.example.com' ) , 'foobaz.example.com' ) )
681686 assert_equal ( true , OpenSSL ::SSL . verify_certificate_identity (
682687 create_cert_with_san ( 'DNS:b*z.example.com' ) , 'buzz.example.com' ) )
688+
683689 # Section 6.4.3 of RFC6125 states that client should NOT match identifier
684690 # where wildcard is other than left-most label.
685691 #
You can’t perform that action at this time.
0 commit comments