AzureSignTool.Cli.win-x64 2026.11111.11200

dotnet add package AzureSignTool.Cli.win-x64 --version 2026.11111.11200
                    
NuGet\Install-Package AzureSignTool.Cli.win-x64 -Version 2026.11111.11200
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AzureSignTool.Cli.win-x64" Version="2026.11111.11200" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AzureSignTool.Cli.win-x64" Version="2026.11111.11200" />
                    
Directory.Packages.props
<PackageReference Include="AzureSignTool.Cli.win-x64" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AzureSignTool.Cli.win-x64 --version 2026.11111.11200
                    
#r "nuget: AzureSignTool.Cli.win-x64, 2026.11111.11200"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AzureSignTool.Cli.win-x64@2026.11111.11200
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AzureSignTool.Cli.win-x64&version=2026.11111.11200
                    
Install as a Cake Addin
#tool nuget:?package=AzureSignTool.Cli.win-x64&version=2026.11111.11200
                    
Install as a Cake Tool

πŸ” AzureSignTool

CI NuGet NuGet downloads

Quality Gate Status Bugs Code Smells Vulnerabilities Security Rating Maintainability Rating

A code signing tool that uses Azure Key Vault for performing the signing process. Similar to signtool in the Windows SDK, but leverages Azure Key Vault certificates for secure, centralized key management.

πŸ“¦ Based on AzureSignTool by Kevin Jones.


πŸ“‘ Table of Contents


⚑ Quick Start

# Install the tool
dotnet tool install --global AzureSignTool.Cli

# Sign a file using Azure CLI credentials (for local development)
AzureSignTool sign `
    -kvu https://my-vault.vault.azure.net `
    -kvc my-certificate-name `
    -act AzureCliCredential `
    -tr http://timestamp.digicert.com `
    myfile.exe

πŸ“₯ Installation

Install as a global .NET tool. The package is AzureSignTool.Cli; it installs the AzureSignTool command:

dotnet tool install --global AzureSignTool.Cli
# then, from any shell:
AzureSignTool --version

The tool is published self-contained: NuGet picks the package for your machine's runtime identifier (win-x64, win-arm64 or linux-x64) and ships the matching .NET runtime inside it, so no .NET runtime has to be installed. You only need a .NET 10 or later CLI to install or update the tool, and dotnet can be removed from the machine afterwards β€” the installed shim invokes AzureSignTool.exe directly.

On a runtime identifier without a package (for example osx-arm64), installation stops with The tool does not support the current architecture or operating system.


πŸ”‘ Authentication Methods

This tool supports multiple Azure authentication methods. For production scenarios, use the --azure-credential-type (-act) parameter to explicitly specify the credential type rather than relying on DefaultAzureCredential.

🎯 Choosing the Right Credential Type

Scenario Credential Type When to Use
☸️ Kubernetes / Containers WorkloadIdentityCredential CI/CD pipelines in AKS with workload identity federation
☁️ Azure VMs / App Services ManagedIdentityCredential Applications running on Azure compute resources
πŸ”„ CI/CD with Service Principal ClientSecretCredential Automated builds with explicit client credentials
πŸ–₯️ Local Development AzureCliCredential Developers authenticated via az login
🌐 Interactive Use InteractiveBrowserCredential Manual signing operations requiring user login
πŸ”§ Environment Variables EnvironmentCredential Applications configured via Azure environment variables

⚠️ Why Avoid DefaultAzureCredential in Production?

According to Microsoft's documentation, DefaultAzureCredential is designed for development convenience but is not recommended for production because it:

  • ❌ Tries multiple credential types in sequence, causing unpredictable behavior
  • ❌ May attempt unnecessary authentication methods, impacting performance
  • ❌ Makes troubleshooting more difficult due to its "magic" discovery chain

Using --azure-credential-type provides:

  • βœ… Explicit control over which authentication method is used
  • βœ… Better security by limiting credential discovery
  • βœ… Improved performance by avoiding unnecessary auth attempts
  • βœ… Easier troubleshooting with predictable authentication flow

ℹ️ Combining parameters: a credential type consumes the parameters it needs, so -kvi, -kvt and -kvs are valid alongside ClientSecretCredential, -kvi/-kvt alongside InteractiveBrowserCredential, and -kva alongside AccessTokenCredential. The legacy selectors --azure-key-vault-accesstoken, --azure-key-vault-client-id and --azure-key-vault-managed-identity cannot be combined with a type that does not consume them.


πŸ’» Usage Examples

πŸ–₯️ Using Azure CLI Credential (Local Development)

AzureSignTool sign -du "https://example.com" `
    -fd sha384 `
    -kvu https://my-vault.vault.azure.net `
    -act AzureCliCredential `
    -kvc my-certificate-name `
    -tr http://timestamp.digicert.com `
    -td sha384 `
    -v `
    myfile.exe

☸️ Using Workload Identity (Kubernetes / Containers)

AzureSignTool sign -du "https://example.com" `
    -fd sha384 `
    -kvu https://my-vault.vault.azure.net `
    -act WorkloadIdentityCredential `
    -kvc my-certificate-name `
    -tr http://timestamp.digicert.com `
    -td sha384 `
    -v `
    myfile.exe

☁️ Using Managed Identity (Azure VMs / App Services)

AzureSignTool sign -du "https://example.com" `
    -fd sha384 `
    -kvu https://my-vault.vault.azure.net `
    -act ManagedIdentityCredential `
    -kvc my-certificate-name `
    -tr http://timestamp.digicert.com `
    -td sha384 `
    -v `
    myfile.exe

πŸ”„ Using Client Secret (CI/CD Pipelines)

AzureSignTool sign -du "https://example.com" `
    -fd sha384 `
    -kvu https://my-vault.vault.azure.net `
    -act ClientSecretCredential `
    -kvi 01234567-abcd-ef012-0000-0123456789ab `
    -kvt 01234567-abcd-ef012-0000-0123456789ab `
    -kvs <client-secret> `
    -kvc my-certificate-name `
    -tr http://timestamp.digicert.com `
    -td sha384 `
    -v `
    myfile.exe

🌐 Using Interactive Browser

AzureSignTool sign -du "https://example.com" `
    -fd sha384 `
    -kvu https://my-vault.vault.azure.net `
    -act InteractiveBrowserCredential `
    -kvi 01234567-abcd-ef012-0000-0123456789ab `
    -kvt 01234567-abcd-ef012-0000-0123456789ab `
    -kvc my-certificate-name `
    -tr http://timestamp.digicert.com `
    -td sha384 `
    -v `
    myfile.exe

πŸ’‘ Tip: Use --help or sign --help for detailed parameter information.


πŸ“– Command Reference

πŸ” Azure Key Vault Authentication

Parameter Short Required Description
--azure-key-vault-url -kvu βœ… Fully qualified URL of the key vault (e.g., https://my-vault.vault.azure.net)
--azure-key-vault-certificate -kvc βœ… Name of the certificate for signing
--azure-key-vault-certificate-version -kvcv βž– Specific certificate version (defaults to latest)
--azure-key-vault-client-id -kvi βš™οΈ Client ID for service principal authentication
--azure-key-vault-client-secret -kvs βš™οΈ Client secret for service principal authentication
--azure-key-vault-tenant-id -kvt βš™οΈ Tenant ID for service principal authentication
--azure-key-vault-accesstoken -kva βš™οΈ Pre-acquired access token for authentication
--azure-key-vault-managed-identity -kvm βš™οΈ Use DefaultAzureCredential (not recommended for production)
--azure-credential-type -act βš™οΈ Recommended. Explicit credential type (see Authentication Methods)
--azure-authority -au βž– Azure Authority URL (for sovereign clouds)

βœ… = Required | βž– = Optional | βš™οΈ = Required depending on authentication method

πŸŽ›οΈ Available Credential Types (-act)
Value Description
DefaultAzureCredential πŸ”„ Tries multiple credential types in sequence (not recommended for production)
ManagedIdentityCredential ☁️ Azure Managed Identity
WorkloadIdentityCredential ☸️ Workload identity federation (Kubernetes/containers)
ClientSecretCredential πŸ”‘ Service principal with client secret
InteractiveBrowserCredential 🌐 Interactive browser authentication
EnvironmentCredential πŸ”§ Authenticate using environment variables
AzureCliCredential πŸ–₯️ Authenticate using Azure CLI
AzurePowerShellCredential πŸ’  Authenticate using Azure PowerShell
AccessTokenCredential 🎫 Use a pre-acquired access token

✍️ Signing Options

Parameter Short Default Description
--description -d βž– Description of the signed content (same as /d in signtool)
--description-url -du βž– URL with more information about the content (same as /du in signtool)
--file-digest -fd sha256 Hash algorithm for file digest: sha1, sha256, sha384, sha512
--timestamp-rfc3161 -tr βž– RFC3161 timestamp server URL (recommended)
--timestamp-authenticode -t βž– Legacy Authenticode timestamp server (deprecated)
--timestamp-digest -td sha256 Hash algorithm for timestamp: sha1, sha256, sha384, sha512
--additional-certificates -ac βž– Additional certificates for the chain (can be specified multiple times)

βš™οΈ Processing Options

Parameter Short Default Description
--continue-on-error -coe ❌ Continue signing remaining files if one fails
--input-file-list -ifl βž– Path to text file containing files to sign (one per line)
--skip-signed -s ❌ Skip files that are already signed
--append-signature -as ❌ Append signature instead of replacing (Windows 11+)
--max-degree-of-parallelism -mdop 4 Maximum concurrent signing operations
--sign-nuget-contents -snc ❌ Sign binaries inside NuGet packages
--sign-nuget-contents-filter -sncf βž– Glob pattern to filter which binaries to sign inside NuGet packages

πŸ“€ Output Options

Parameter Short Description
--verbose -v πŸ“ Show detailed output including authentication info
--quiet -q πŸ”‡ Suppress all output
--colors β€” 🎨 Enable colored output

πŸ”¬ Advanced Options

Parameter Short Description
--page-hashing -ph Generate page hashes for executable files
--no-page-hashing -nph Suppress page hashes for executable files

πŸ“ Supported Formats

This tool supports the same formats as the Windows SDK signtool:

Format Extensions
πŸ–₯️ Portable Executable .exe, .dll
πŸ“¦ Cabinet Files .cab
πŸ’Ώ Windows Installer .msi, .msix
πŸ“± APPX/MSIX Packages .appx, .msix, .appxbundle, .msixbundle
πŸ“¦ NuGet Packages .nupkg, .snupkg

πŸ“¦ NuGet Package Signing

When signing NuGet packages, the tool supports two types of signing:

1️⃣ Package-Level Signature (Default)

Creates a NuGet author signature (.signature.p7s) for the package itself.

AzureSignTool sign `
    -kvu https://my-vault.vault.azure.net `
    -act ClientSecretCredential `
    -kvi <client-id> -kvt <tenant-id> -kvs <client-secret> `
    -kvc my-certificate `
    -tr http://timestamp.digicert.com `
    MyPackage.1.0.0.nupkg
2️⃣ Package + Content Signing (Optional)

Signs both the package and all binaries inside it (.dll, .exe, .winmd).

AzureSignTool sign `
    -kvu https://my-vault.vault.azure.net `
    -act ClientSecretCredential `
    -kvi <client-id> -kvt <tenant-id> -kvs <client-secret> `
    -kvc my-certificate `
    -tr http://timestamp.digicert.com `
    --sign-nuget-contents `
    MyPackage.1.0.0.nupkg
3️⃣ Filtered Content Signing

Sign only specific binaries inside the package using a glob pattern (useful when packages contain third-party DLLs that are already signed).

AzureSignTool sign `
    -kvu https://my-vault.vault.azure.net `
    -act ClientSecretCredential `
    -kvi <client-id> -kvt <tenant-id> -kvs <client-secret> `
    -kvc my-certificate `
    -tr http://timestamp.digicert.com `
    --sign-nuget-contents `
    --sign-nuget-contents-filter "ISynergy.Framework.*" `
    MyPackage.1.0.0.nupkg

ℹ️ Note: Symbol packages (.snupkg) do not support package-level signatures per NuGet specifications. The certificate must have the Code Signing enhanced key usage (EKU).


🚦 Exit Codes

Code Name Description
0 βœ… S_OK All files signed successfully
0x20000001 ⚠️ Partial Success Some files signed, some failed
0xA0000002 ❌ All Failed All files failed to sign
0x80070057 ❌ E_INVALIDARG Argument validation failed (nothing was signed)
0x80131539 ❌ E_PLATFORMNOTSUPPORTED sign was run on a non-Windows OS or older Windows

πŸ”§ Troubleshooting

πŸ“ Enable Verbose Logging

Use the --verbose (-v) flag to see detailed authentication and signing information:

AzureSignTool sign `
    -kvu https://my-vault.vault.azure.net `
    -act WorkloadIdentityCredential `
    -kvc my-certificate `
    -v `
    myfile.exe

The verbose output includes:

  • πŸ”‘ Which credential type is being used
  • βš™οΈ Configuration parameters (Tenant ID, Client ID, etc.)
  • πŸ”§ Environment variables being checked
  • ⚠️ Warnings if using DefaultAzureCredential in production

πŸ” Common Authentication Issues

☸️ WorkloadIdentityCredential (Kubernetes)

Ensure these environment variables are set:

Variable Description
AZURE_TENANT_ID 🏒 Azure AD tenant ID
AZURE_CLIENT_ID πŸ†” Application (client) ID
AZURE_FEDERATED_TOKEN_FILE πŸ“„ Path to the projected service account token
☁️ ManagedIdentityCredential (Azure VMs / App Services)
  • βœ… Verify the Azure resource has a managed identity assigned
  • βœ… Ensure the identity has appropriate Key Vault access policies or RBAC permissions
πŸ–₯️ AzureCliCredential
# Ensure you're logged in
az login

# Verify your account
az account show
πŸ’  AzurePowerShellCredential
# Ensure you're logged in
Connect-AzAccount

# Verify your context
Get-AzContext

πŸ›  Building & Continuous Integration

πŸ’» Local build

dotnet restore AzureSignTool.Cli.slnx
dotnet build AzureSignTool.Cli.slnx -c Release -p:GeneratePackageOnBuild=false -nodeReuse:false
dotnet test AzureSignTool.Cli.slnx -c Release --no-build
dotnet pack AzureSignTool.Cli.slnx -c Release --no-build -o packages

Set MSBUILDDISABLENODEREUSE=1 (and pass -nodeReuse:false) when building locally β€” MSBuild node reuse is what exhausts memory on developer machines (see .ai/project/preferences.md):

$env:MSBUILDDISABLENODEREUSE = "1"
$env:DOTNET_CLI_USE_MSBUILD_SERVER = "0"

πŸ”„ Pipeline

CI/CD runs on GitHub Actions: .github/workflows/ci.yml. It replaced the former Azure DevOps pipeline.

Job Runner What it does
build ubuntu-latest restore β†’ build β†’ pack β†’ verify the package β†’ test with opencover coverage β†’ upload nupkgs and test-results
release windows-2025 sign the packages with the AzureSignTool built by the build job, through Azure Key Vault (OIDC) β€” the NuGet signature plus an Authenticode signature on our own assemblies inside the package (--sign-nuget-contents-filter "AzureSignTool*") β€” push to nuget.org (trusted publishing). A push to main publishes a release through the production environment and creates the <version> tag + GitHub release. Pull requests build, test and pack only; they never publish or create a tag

Build and tests are platform-neutral; only the native signing path is Windows-bound (mssign32/crypt32). The two test classes that exercise it β€” CodeSigningServiceTests and MemoryCertificateStoreTests β€” carry [OSCondition(OperatingSystems.Windows)] and are skipped on Linux. The release job stays on Windows because the tool itself refuses to run elsewhere.

Versions come from the workflow clock in UTC as yyyy.1MMdd.1HHmm (2026.11027.11034); pull request builds use a -preview package suffix for their uploaded artifacts, but are never published. No file is bumped for a release: the tag and GitHub release use the build number directly (no v prefix).

πŸ” Repository configuration

Nothing here is needed for the build and test job β€” only for publishing. One command creates everything, using an authenticated gh CLI:

./scripts/Set-GitHubSettings.ps1
  • Environments (Settings β†’ Environments): production gates a release from main with required reviewers (-Reviewers, default ismailhassani). Pull requests do not publish, so no second environment is needed.
  • Variables: BUILD_CONFIGURATION (optional, defaults to Release), AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_KEYVAULT_URI, AZURE_SIGNING_CERTIFICATE, TIMESTAMP_URL. No subscription id is needed: the release job requests the OIDC token directly and signs through the Key Vault access policy, so the identity needs no Azure role assignment.
  • Secret: NUGET_USER β€” the nuget.org username used for trusted publishing (ismailhassani, not the I-Synergy organization). The release job fails fast with a clear message when it is missing.

nuget.org trusted publishing pins the production environment name. Signing is skipped when AZURE_KEYVAULT_URI is not configured β€” the release job logs a warning and publishes unsigned packages in that case.


πŸ“‹ Requirements

Requirement Version
πŸ–₯️ Runtime OS Windows 10 or later (signing calls mssign32/crypt32)
βš™οΈ .NET runtime (to run) Not required β€” the package bundles it (win-x64, win-arm64, linux-x64)
πŸ“¦ .NET CLI (to install/update) 10.0 or later
πŸ› οΈ Build/test OS Any β€” Windows, Linux or macOS
🧰 .NET SDK (for building) 11.0.100 (global.json, rollForward: latestFeature)

πŸ“„ License

This project is licensed under the MIT License.


πŸ™ Acknowledgments

This project is based on AzureSignTool by Kevin Jones.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.11111.11200 104 11/11/2026
2026.11111.11120 84 11/11/2026