Skip to content

Add AIA URL to dotnet nuget verify output - #7740

Merged
zivkan merged 2 commits into
devfrom
dev-zivkan-certificate-validation-urls
Oct 6, 2026
Merged

zivkan merged 2 commits into
devfrom
dev-zivkan-certificate-validation-urls

Conversation

@zivkan

@zivkan zivkan commented Sep 26, 2026

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#15095

Description

Adds "CA Issuer" and "Freshest CRL" URLs to dotnet nuget verify's output (at "normal" verbosity and higher).

example:

 Verifying author primary signature's timestamp with timestamping service certificate:
   Subject Name: CN=DigiCert SHA256 RSA4096 Timestamp Responder 2025 1, O="DigiCert, Inc.", C=US
   SHA1 hash: DD6230AC860A2D306BDA38B16879523007FB417E
   SHA256 hash: 4AA03FA22CD75C84C55C938F828E676B9CAECAB33FE36D269AA334F146110A33
   Issued by: CN=DigiCert Trusted G4 TimeStamping RSA4096 SHA256 2025 CA1, O="DigiCert, Inc.", C=US
   Valid from: 2025-06-04 9:30:00 AM to 2036-09-04 9:29:59 AM
   CRL URL: http://crl3.digicert.com/DigiCertTrustedG4TimeStampingRSA4096SHA2562025CA1.crl
   OCSP URL: http://ocsp.digicert.com
+  CA Issuers URL: http://cacerts.digicert.com/DigiCertTrustedG4TimeStampingRSA4096SHA2562025CA1.crt

After implementing the "CA Issuers URL", I asked copilot what other URLs can be in the certificate that is used for validation. Copilot said "Freshest CRL" is another example. However, according to NuGet Insights, every signed package on nuget.org uses certs with DigiCert as the root CA, which doesn't use "Freshest CRL". So, I was unable to find an example package to test "Freshest CRL" with. However, copilot says that Windows use will it for certificate validation (openssl can use it for validation, but needs an opt in, so it's unlikely to be used in restore on Linux).

Despite not being able to find a package to test with, I think it's useful to add to the command output, because the point is to allow customers to generate a list of URL endpoints used for package validation. If a signed package in the future starts using a different root CA certificate, or if DigiCert starts adding Freshest CRL to new certificates, then this allows the command to provide the URL without needing code changes once a package starts using it.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. N/A

@zivkan
zivkan requested a review from a team as a code owner September 26, 2026 05:34
@zivkan zivkan added the Merge next release PRs that should not be merged until the dev branch targets the next release label Sep 26, 2026
donnie-msft
donnie-msft previously approved these changes Sep 29, 2026
@zivkan
zivkan merged commit 0d9e125 into dev Oct 6, 2026
18 checks passed
@zivkan
zivkan deleted the dev-zivkan-certificate-validation-urls branch October 6, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merge next release PRs that should not be merged until the dev branch targets the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dotnet nuget verify doesn't show "CA issuer" URL

2 participants