-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Breaking change: dotnet nuget verify outputs CRL and OCSP URLs (.NET 10.0.400 SDK)
#53563
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
Open
Copilot
wants to merge
3
commits into
main
Choose a base branch
from
copilot/dotnet-nuget-verify-add-urls
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
77 changes: 77 additions & 0 deletions
77
docs/core/compatibility/sdk/10.0/dotnet-nuget-verify-crl-ocsp-urls.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| --- | ||
| title: "Breaking change: dotnet nuget verify outputs CRL and OCSP URLs" | ||
| description: "Learn about the breaking change in .NET 10 where dotnet nuget verify outputs CRL and OCSP URLs for each certificate in the signature chain." | ||
| ms.date: 05/05/2026 | ||
| ai-usage: ai-assisted | ||
| --- | ||
|
|
||
| # `dotnet nuget verify` outputs CRL and OCSP URLs | ||
|
|
||
| Starting in .NET 10.0.400, `dotnet nuget verify` outputs Certificate Revocation List (CRL) and Online Certificate Status Protocol (OCSP) URLs for each certificate in the signature chain. | ||
|
|
||
| ## Version introduced | ||
|
|
||
| .NET 10.0.400 SDK | ||
|
|
||
| ## Previous behavior | ||
|
|
||
| Previously, `dotnet nuget verify` displayed certificate details such as subject name, SHA1 hash, SHA256 hash, issuer, and validity period, but didn't include CRL or OCSP URLs. | ||
|
|
||
| ``` | ||
| Verifying NuGet.Versioning.7.0.0 | ||
| Content hash: vMEhpystjAmHzWARE09PjYMWOiGgM+f9rJYMcXGs8soz9/url4qmU9O9Y+hy22kPuqozCMoGcJt0JzKRZ1woZg== | ||
| C:\Users\user\.nuget\packages\nuget.versioning\7.0.0\nuget.versioning.7.0.0.nupkg | ||
| Signature Hash Algorithm: SHA256 | ||
|
|
||
| Signature type: Author | ||
| Verifying the author primary signature with certificate: | ||
| Subject Name: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US | ||
| SHA1 hash: F25C45D17C53D4E0D1DC9FB9DFD0731FCF904B77 | ||
| SHA256 hash: 566A31882BE208BE4422F7CFD66ED09F5D4524A5994F50CCC8B05EC0528C1353 | ||
| Issued by: CN=DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1, O="DigiCert, Inc.", C=US | ||
| Valid from: 2023-07-27 9:30:00 AM to 2026-10-18 10:29:59 AM | ||
| ``` | ||
|
|
||
| ## New behavior | ||
|
|
||
| Starting in .NET 10.0.400 SDK, CRL URL and OCSP URL lines appear after the certificate validity period. A certificate can have multiple CRL URLs. | ||
|
|
||
| ``` | ||
| Verifying NuGet.Versioning.7.0.0 | ||
| Content hash: vMEhpystjAmHzWARE09PjYMWOiGgM+f9rJYMcXGs8soz9/url4qmU9O9Y+hy22kPuqozCMoGcJt0JzKRZ1woZg== | ||
| C:\Users\user\.nuget\packages\nuget.versioning\7.0.0\nuget.versioning.7.0.0.nupkg | ||
| Signature Hash Algorithm: SHA256 | ||
|
|
||
| Signature type: Author | ||
| Verifying the author primary signature with certificate: | ||
| Subject Name: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US | ||
| SHA1 hash: F25C45D17C53D4E0D1DC9FB9DFD0731FCF904B77 | ||
| SHA256 hash: 566A31882BE208BE4422F7CFD66ED09F5D4524A5994F50CCC8B05EC0528C1353 | ||
| Issued by: CN=DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1, O="DigiCert, Inc.", C=US | ||
| Valid from: 2023-07-27 9:30:00 AM to 2026-10-18 10:29:59 AM | ||
| CRL URL: http://crl3.digicert.com/DigiCertTrustedG4CodeSigningRSA4096SHA3842021CA1.crl | ||
| CRL URL: http://crl4.digicert.com/DigiCertTrustedG4CodeSigningRSA4096SHA3842021CA1.crl | ||
| OCSP URL: http://ocsp.digicert.com | ||
| ``` | ||
|
|
||
| ## Type of breaking change | ||
|
|
||
| This change is a [behavioral change](../../categories.md#behavioral-change). | ||
|
|
||
| ## Reason for change | ||
|
|
||
| Some users asked NuGet to provide a full list of URLs or hosts that NuGet accesses during a restore, and to explain why NuGet makes HTTP (rather than HTTPS) requests. The CRL and OCSP URLs in certificate chains are the source of these HTTP requests. Displaying these URLs in `dotnet nuget verify` output lets users discover this information without needing to capture network traces. | ||
|
|
||
| For more information, see the [NuGet.Client pull request #7343](https://github.com/NuGet/NuGet.Client/pull/7343). | ||
|
|
||
| ## Recommended action | ||
|
|
||
| If you use `dotnet nuget verify` in automation and parse its output, update your parsing logic to handle the new `CRL URL` and `OCSP URL` fields. Certificate information blocks no longer have unique keys; a certificate can have multiple `CRL URL` entries. | ||
|
|
||
| ## Affected APIs | ||
|
|
||
| None. | ||
|
|
||
| ## See also | ||
|
|
||
| - [`dotnet nuget verify`](../../../tools/dotnet-nuget-verify.md) |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.