Skip to content

Conversation

@edoardo-kolver
Copy link

The documentation says to export the certificate, but this introduces errors when the certificate is stored in a hardware token. You just need to specify the certificate fingerprint, no need to export. See issue dotnet/runtime#100414

The documentation says to export the certificate, but this introduces errors when the certificate is stored in a hardware token. You just need to specify the certificate fingerprint, no need to export. See issue dotnet/runtime#100414
@edoardo-kolver edoardo-kolver requested review from a team as code owners April 4, 2024 22:42
@edoardo-kolver
Copy link
Author

@dotnet-policy-service agree company="Kolver"

@learn-build-service-prod
Copy link

Learn Build status updates of commit ccd1e10:

✅ Validation status: passed

File Status Preview URL Details
docs/create-packages/Sign-a-Package.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

better phrasing

Co-authored-by: Theodore Tsirpanis <[email protected]>
@learn-build-service-prod
Copy link

Learn Build status updates of commit 9619cec:

✅ Validation status: passed

File Status Preview URL Details
docs/create-packages/Sign-a-Package.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@jebriede jebriede requested a review from dtivel October 1, 2024 22:35
@edoardo-kolver
Copy link
Author

Why isn't this merged already? It's a super simple but helpful documentation update


## Export the certificate file

* If your certificate is stored in a hardware token, you should not export the certificate. Instead, specify the SHA-1 certificate fingerprint (thumbprint) by using the option `--certificate-fingerprint <SHA-1fingerprint>` (replacing `--certificate-path <PathToTheCertificate>`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Starting with .NET 9 and NuGet.exe 6.12, NU3043 warning is raised when a SHA-1 certificate fingerprint is passed to the sign commands. SHA-1 is considered insecure and should no longer be used.

This warning is promoted to an error in the .NET 10 SDK, and will be promoted to an error in NuGet.exe around .NET 10's release.

Link to docs.

Suggested change
* If your certificate is stored in a hardware token, you should not export the certificate. Instead, specify the SHA-1 certificate fingerprint (thumbprint) by using the option `--certificate-fingerprint <SHA-1fingerprint>` (replacing `--certificate-path <PathToTheCertificate>`)
* If your certificate is stored in a hardware token, you should not export the certificate. Instead, specify the SHA-2 family certificate fingerprints (thumbprint) by using the option `--certificate-fingerprint <SHA-2fingerprint>` (replacing `--certificate-path <PathToTheCertificate>`)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants