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
676
676
# buzz.example.net, respectively). ...
677
677
assert_equal ( true , OpenSSL ::SSL . verify_certificate_identity (
678
678
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
+
679
684
assert_equal ( true , OpenSSL ::SSL . verify_certificate_identity (
680
685
create_cert_with_san ( 'DNS:*baz.example.com' ) , 'foobaz.example.com' ) )
681
686
assert_equal ( true , OpenSSL ::SSL . verify_certificate_identity (
682
687
create_cert_with_san ( 'DNS:b*z.example.com' ) , 'buzz.example.com' ) )
688
+
683
689
# Section 6.4.3 of RFC6125 states that client should NOT match identifier
684
690
# where wildcard is other than left-most label.
685
691
#
You can’t perform that action at this time.
0 commit comments