Skip to content

[release/13.1] Filter dev certs without X509SubjectKeyIdentifierExtension when any cert has it#13676

Merged
joperezr merged 2 commits intorelease/13.1from
backport/pr-13667-to-release/13.1
Jan 20, 2026
Merged

[release/13.1] Filter dev certs without X509SubjectKeyIdentifierExtension when any cert has it#13676
joperezr merged 2 commits intorelease/13.1from
backport/pr-13667-to-release/13.1

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Dec 21, 2025

Backport of #13667 to release/13.1

/cc @danegsta @copilot

Customer Impact

The OpenSSL implementation used by some services (reproduces with Node.JS based apps) doesn't handle the situation where multiple generations of dev cert are trusted, but one of them is missing a Subject Key Identifier ASN.1 extension (it was added to the dev cert in SDK 10.0.101). If a dev cert without the extension is in the trusted set, Node.JS apps seem to always try to validate against it regardless of the actual dev cert used by the target server, breaking the ability to trust the newer dev cert.

This PR excludes older certificates from the default trusted set when newer generation certificates are present.

Testing

Existing and manual testing.

Risk

Long running non-Aspire applications using older dev certs won't be trusted by Aspire services. Aspire and services it launches will use the newest developer certificate.

Regression?

No

Copilot AI and others added 2 commits December 21, 2025 19:02
…ny cert has it

Co-authored-by: danegsta <50252651+danegsta@users.noreply.github.com>
@github-actions
Copy link
Contributor Author

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 13676

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 13676"

@joperezr joperezr added the Servicing-approved Approved for servicing release label Jan 15, 2026
@sebastienros
Copy link
Member

@joperezr Does it need to be merged?

@joperezr
Copy link
Member

Yes, this was waiting on reviews IIRC. We will merge it today

@joperezr joperezr merged commit 333ec1e into release/13.1 Jan 20, 2026
562 of 565 checks passed
@joperezr joperezr deleted the backport/pr-13667-to-release/13.1 branch January 20, 2026 17:48
@dotnet-policy-service dotnet-policy-service bot added this to the 13.1.1 milestone Jan 20, 2026
This was referenced Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants