Repository navigation
Sign NativeAOT'd aspnetcore dotnet tools with MacDeveloperHarden - #7217
Merged
Merged
Conversation
The dotnet-dev-certs, dotnet-user-secrets, and dotnet-user-jwts tools are NativeAOT-compiled native executables on macOS, but they were not being signed with the MacDeveloperHarden certificate. As a result, Apple notarization failed with errors that the binaries were not signed, the signature did not include a secure timestamp, and the executables did not have the hardened runtime enabled. Add them to the FileSignInfo list alongside the existing Roslyn (csc/vbc/ VBCSCompiler) and MSBuild apphost entries. Fixes #7194 Co-authored-by: Copilot <[email protected]>
Member
Author
|
@baronfel @DamianEdwards let's fix this here to unblock the VMR signed build |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the SDK signing configuration so the macOS NativeAOT-built ASP.NET Core dotnet tools are signed with the hardened runtime certificate, addressing Apple notarization failures for these bundled executables.
Changes:
- Adds
dotnet-dev-certs,dotnet-user-secrets, anddotnet-user-jwtsto the macOSFileSignInfolist using theMacDeveloperHardencertificate.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
akoeplinger
enabled auto-merge (squash)
June 12, 2026 21:02
Member
|
@akoeplinger seems this will require updates to #7131 too? |
Member
Author
|
@DamianEdwards yes any native binary we ship on macOS must be signed. I don't care whether we get this PR in or merge it into #7131 :) |
hoyosjs
approved these changes
Jun 25, 2026
Member
Author
|
/backport to release/11.0.1xx-preview6 |
Contributor
|
Started backporting to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The dotnet-dev-certs, dotnet-user-secrets, and dotnet-user-jwts tools are NativeAOT-compiled native executables on macOS, but they were not being signed with the MacDeveloperHarden certificate. As a result, Apple notarization failed with errors that the binaries were not signed, the signature did not include a secure timestamp, and the executables did not have the hardened runtime enabled.
Add them to the FileSignInfo list alongside the existing Roslyn (csc/vbc/ VBCSCompiler) and MSBuild apphost entries.
Fixes #7194