From d1ca364b7dbff38abce0457d94c4ce1b7e3a4cd9 Mon Sep 17 00:00:00 2001 From: Bert Date: Mon, 22 Jan 2024 11:39:41 +0100 Subject: [PATCH] Update code signing chapter (#1597) --- Documentation/ReleasePlan.md | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/Documentation/ReleasePlan.md b/Documentation/ReleasePlan.md index 1adceaa6e..ca65a9e54 100644 --- a/Documentation/ReleasePlan.md +++ b/Documentation/ReleasePlan.md @@ -102,18 +102,15 @@ This is the steps to release new packages to nuget.org Successfully created package 'D:\git\coverlet\bin\Release\Packages\coverlet.console.6.0.1-preview.6.g918cd179e0.snupkg'. ``` -4. Sign the packages using SignClient tool - - ```powershell - ❯ SignClient "Sign" ` - >> --baseDirectory "REPO ROOT DIRECTORY\bin" ` - >> --input "**/*.nupkg" ` - >> --config "ROOT REPO DIRECTORY\eng\signclient.json" ` - >> --user "USER" ` - >> --secret "SECRET" ` - >> --name "Coverlet" ` - >> --description "Coverlet" ` - >> --descriptionUrl "https://github.com/coverlet-coverage/coverlet" +4. Sign the packages using NuGetKeyVaultSignTool + + ``` + ❯ NuGetKeyVaultSignTool sign **/*.nupkg --file-digest sha256 --timestamp-rfc3161 http://timestamp.digicert.com --timestamp-digest sha256 ` + >> --azure-key-vault-url KEYVAULT-URL ` + >> --azure-key-vault-client-id CLIENT-ID ` + >> --azure-key-vault-tenant-id TENANT-ID ` + >> --azure-key-vault-client-secret KEYVAULT-SECRET ` + >> --azure-key-vault-certificate CERT-FRIENDLY-NAME ``` 5. Upload *.nupkg files to Nuget.org site. **Check all metadata(url links, deterministic build etc...) before "Submit"**