I-Synergy.Tools.Azure.SignTool 2026.10201.11834

Prefix Reserved
dotnet tool install --global I-Synergy.Tools.Azure.SignTool --version 2026.10201.11834
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local I-Synergy.Tools.Azure.SignTool --version 2026.10201.11834
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=I-Synergy.Tools.Azure.SignTool&version=2026.10201.11834
                    
nuke :add-package I-Synergy.Tools.Azure.SignTool --version 2026.10201.11834
                    

πŸ” I-Synergy Azure SignTool

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 I-Synergy.Tools.Azure.SignTool

# 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:

dotnet tool install --global I-Synergy.Tools.Azure.SignTool

πŸ”‘ 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

πŸ’» 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 `
    -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 `
    -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 `
    -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 `
    -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

πŸ”§ 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

πŸ“‹ Requirements

Requirement Version
πŸ–₯️ Operating System Windows 10 or later
πŸ› οΈ .NET SDK (for building) 10.0

πŸ“„ License

This project is licensed under the MIT License.


πŸ™ Acknowledgments

This project is based on AzureSignTool by Kevin Jones (@vcsjones).

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
2026.10201.11834 544 2/1/2026
2026.10201.11820-preview 155 2/1/2026
2026.0.1 168 2/1/2026
2026.0.0 156 2/1/2026