Skip to content

[release/8.0-staging] Handle OSSL 3.4 change to SAN:othername formatting #115367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

vcsjones
Copy link
Member

@vcsjones vcsjones commented May 7, 2025

Backport of #111820 to release/8.0-staging

/cc @vcsjones @bartonjs

Customer Impact

  • Customer reported
  • Found internally

This is a test-only change to react to a change in OpenSSL 3.4 that is starting to appear in our CI pipelines. OpenSSL 3.4 formats a UPN in an otherName SAN differently.

Regression

  • Yes
  • No
  • Upstream Change

Reacting to an upstream change in OpenSSL 3.4 that was introduced here openssl/openssl@de8861a

Testing

Existing tests caught the change. Tests pass after conditionally handling the OpenSSL 3.4 change, so that tests will continue to pass on older OpenSSL versions, too.

Risk

Low. Test only change.

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Backport to accommodate the change in SAN otherName formatting introduced by OpenSSL 3.4.

  • Add detection for OpenSSL 3.4 in PlatformDetection
  • Update the test for Subject Alternative Name formatting to handle the new OpenSSL 3.4 output

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/libraries/System.Security.Cryptography/tests/AsnEncodedDataTests.cs Add IsOpenSsl3_4 flag and adjust expected SAN formatting
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Unix.cs Introduce IsOpenSsl3_4, refactor OpenSSL version checks

Copy link
Contributor

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

@vcsjones
Copy link
Member Author

vcsjones commented May 7, 2025

Why didn't this backport cleanly?

Because in 9.0 we renamed IsOSXLike to IsApplePlatform, which changed how we ask what version of OpenSSL the platform is running. #96098

@bartonjs
Copy link
Member

bartonjs commented May 7, 2025

Test-only change, no servicing review required.

@bartonjs bartonjs added the Servicing-approved Approved for servicing release label May 7, 2025
@bartonjs bartonjs merged commit 9541e96 into dotnet:release/8.0-staging May 7, 2025
113 of 117 checks passed
@vcsjones vcsjones deleted the backport-111820-to-release-8.0-staging branch May 7, 2025 19:00
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Security Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy