Skip to content

X509Certificates.Tests.HostnameMatchTests tests fail against OpenSSL 4.1 #137209

Description

@vcsjones

This unit test fails against OpenSSL 4.1.

[xUnit.net 00:00:06.50]     System.Security.Cryptography.X509Certificates.Tests.HostnameMatchTests.MatchCN_TwoLabels(wantsWildcard: False, mixedCase: True) [FAIL]
  Failed System.Security.Cryptography.X509Certificates.Tests.HostnameMatchTests.MatchCN_TwoLabels(wantsWildcard: False, mixedCase: False) [9 ms]
  Error Message:
   LocalHost.loCAldoMaIn matches
  Stack Trace:
     at System.Security.Cryptography.X509Certificates.Tests.HostnameMatchTests.RunTest(String targetName, String subjectCN, IList`1 sanDnsNames, Boolean flattenCase, Boolean expectedResult) in /__w/runtime-ci/runtime-ci/runtime/src/libraries/System.Security.Cryptography/tests/X509Certificates/HostnameMatchTests.Unix.cs:line 166
   at System.Security.Cryptography.X509Certificates.Tests.HostnameMatchTests.MatchCN_TwoLabels(Boolean wantsWildcard, Boolean mixedCase) in /__w/runtime-ci/runtime-ci/runtime/src/libraries/System.Security.Cryptography/tests/X509Certificates/HostnameMatchTests.Unix.cs:line 37

There are multiple sets from the theory that fail.

Activity

  1. added this to the 12.0.0 milestone on Nov 9, 2026
  2. added theissue type on Nov 9, 2026
  3. self-assigned this
    on Nov 9, 2026
  4. dotnet-policy-service commented on Nov 9, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @bartonjs, @vcsjones, @dotnet/area-system-security
    See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions