I-Synergy.Tools.Azure.SignTool
2026.10201.11834
Prefix Reserved
dotnet tool install --global I-Synergy.Tools.Azure.SignTool --version 2026.10201.11834
dotnet new tool-manifest
dotnet tool install --local I-Synergy.Tools.Azure.SignTool --version 2026.10201.11834
#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
- π₯ Installation
- π Authentication Methods
- π» Usage Examples
- π Command Reference
- π Supported Formats
- π¦ Exit Codes
- π§ Troubleshooting
- π Requirements
- π License
β‘ 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
--helporsign --helpfor 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
DefaultAzureCredentialin 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 | Versions 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. |
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 |