Skip to main content

    AzureSignTool With Azure Key Vault: Setup, Cost and When It Fits

    How AzureSignTool signs with a Key Vault certificate, what the vault costs (about $60 a year per key), why it runs only on Windows, and the alternatives.

    MS
    My-SSL
    ·
    9 min read
    ·
    Published November 4, 2026
    ·
    Last updated November 5, 2026

    The short answer

    AzureSignTool is an open-source signer that works like signtool but signs Windows files with a certificate whose key lives in Azure Key Vault. It needs a Windows machine, a Premium vault holding an RSA HSM key (3072 or 4096 bits) that was generated in the vault, and a certificate from a CA willing to certify that key. As of November 2026 the Key Vault side costs about $60 a year per key at Microsoft's list prices; the certificate is extra.

    Three ways to sign Windows code with a key held in the cloudAzureSignTool with Key Vault Premium, in gold: your vault, about 60 dollars a year per key plus the certificate, for unattended signing on Windows agents. Artifact Signing: Microsoft holds the key, 119.88 dollars a year on Basic, listed countries only, no EV. CA cloud signing such as SimplySign: the CA holds the key, certificate cost only, a phone code at each sign-in.Signing with a cloud-held keyAzureSignTool + Key Vault PremiumKey: Your vault (FIPS 140-3 L3)≈ $60 per key + certificateUnattended signing on Windows agentsArtifact Signing (Microsoft)Key: Microsoft$119.88 (Basic)Listed countries only; no EVCA cloud signing (SimplySign)Key: The CA's HSMCertificate onlyWorkstation signing; phone code per sign-in
    Key Vault's fee is lower than Artifact Signing's, but Artifact Signing's includes the certificate and Key Vault's does not; Key Vault is also the only route that needs a CA willing to certify a key in your own vault.

    What is AzureSignTool?

    AzureSignTool is an open-source command-line signer (vcsjones/AzureSignTool on GitHub) that works like the Windows SDK's signtool, with a smaller set of options, but takes the certificate and key from Azure Key Vault instead of a local certificate store or USB token. Its README says it uses the same signing mechanisms as signtool, so it signs the same file formats signtool supports on that version of Windows.

    Since 1 June 2023 the CA/Browser Forum's Baseline Requirements have required code signing keys to be generated and kept in hardware certified to at least FIPS 140-2 Level 2 or Common Criteria EAL 4+. A cloud HSM counts if the key is created, stored and used inside it and all access to it is logged. AzureSignTool lets a build server use such a key without a USB token plugged into it.

    How AzureSignTool makes one signatureTop to bottom: Windows build agent runs azuresigntool; Key Vault Premium, in gold, signs with the HSM key; the agent then requests an RFC 3161 timestamp; the result is a signed file.One AzureSignTool signatureWindows build agentazuresigntool sign …Key Vault Premiumcertificate + HSM keyAgent adds timestampRFC 3161 request via -trSigned filesame formats as signtool
    Only the Key Vault step touches the private key, so what the build agent holds is a permission to ask for signatures, not the key itself.

    What does AzureSignTool need before it can sign?

    AzureSignTool needs four things in place: a Windows machine to run on, a Key Vault on the Premium tier, a certificate in that vault whose key was generated there, and an identity allowed to use it. The certificate decides whether this route is open to you at all.

    • Windows. The README lists Windows 10 or Windows Server 2016 as the minimum and recommends Windows Server 2022 or later.
    • A Premium vault. Microsoft's key documentation says HSM-protected key types (RSA-HSM and EC-HSM) exist only in the Premium tier; a Standard vault holds software keys, which do not meet the hardware rule. New Premium keys are protected by HSMs validated to FIPS 140-3 Level 3.
    • A key of the right size, made in the vault. Section 6.1.5.2 of the code signing requirements sets RSA 3072 as the minimum for RSA keys, and Microsoft's Trusted Root Program requirements say code signing does not support ECC keys or keys larger than 4096 bits, so a key for signing Windows files is RSA 3072 or 4096. In the vault you create a certificate "issued by a non-integrated CA", download the certificate signing request, have the CA sign it, and merge the signed certificate back in, as Microsoft's CSR guide describes. While creating it, open the certificate's advanced policy and set the key type to RSA-HSM with 3072 or 4096 bits; the default key type is RSA, a software key.
    • A CA that accepts a key in your vault. The CA has to verify that your key really is in hardware, using one of the methods covered below. Not every CA offers this. My-SSL sells Certum certificates, and the code signing certificates we sell keep the key in Certum's own cloud HSM instead, so they are used with signtool through SimplySign rather than with AzureSignTool.

    How do you install AzureSignTool and sign a file?

    AzureSignTool installs as a .NET global tool, through WinGet, or as a single-file executable from the GitHub releases. The README pins version 7.0.1 in its install example and warns against taking new major versions automatically. The NuGet tool needs the .NET 10 SDK, so an older SDK linked from an outdated guide will not install it.

    # .NET global tool (needs the .NET 10 SDK)
    dotnet tool install --global --version 7.0.1 AzureSignTool
    
    # or, with no .NET on the machine
    winget install vcsjones.azuresigntool

    A signing command names the vault, the certificate and a timestamp server. With a managed identity, or an Azure CLI or PowerShell session the build has already signed in with, the -kvm switch replaces the client ID, secret and tenant ID:

    azuresigntool sign ^
      -kvu https://<your-vault>.vault.azure.net ^
      -kvc <certificate-name> ^
      -kvm ^
      -tr <your CA's RFC 3161 timestamp URL> -td sha256 ^
      -fd sha256 ^
      MyApp.exe

    With an app registration instead, pass -kvi (client ID), -kvs (client secret) and -kvt (tenant ID) together; the README says the three go as a set. Use -tr rather than -t: the README calls Authenticode-style timestamping deprecated. Both digest options default to SHA-256. The exit code is an HRESULT, 0 on success, so a pipeline can fail the build on anything else. Once a file is signed, check it the same way as any Authenticode file, as in our guide to verifying a code signature.

    Does AzureSignTool run on Linux or macOS?

    AzureSignTool does not sign on Linux or macOS. It installs there without complaint, which makes the failure easy to miss in a pipeline. On 4 November 2026 we installed version 7.0.1 on Linux x86-64 with the .NET 10.0.403 SDK and ran a signing command against a placeholder vault:

    $ dotnet tool install --tool-path ./tools --version 7.0.1 AzureSignTool
    Tool 'azuresigntool' (version '7.0.1') was successfully installed.
    
    $ ./tools/azuresigntool sign -kvu https://example.vault.azure.net -kvc test -kvm test.exe
    Azure Sign Tool is only supported on Windows.
    $ echo $?
    57

    The tool printed that line and exited without signing, and --help printed the same line. On a Linux or macOS build agent, one alternative is Jsign: a Java implementation of Authenticode, and the help output of Jsign 7.2 (run on OpenJDK 21 the same day) lists Azure Key Vault as a keystore type.

    $ java -jar jsign-7.2.jar --help
      --storetype <TYPE>   The type of the keystore
                           ...
                           Cloud key management systems:
                           - AWS: AWS Key Management Service
                           - AZUREKEYVAULT: Azure Key Vault key management system
                           ...
                           - TRUSTEDSIGNING: Azure Trusted Signing

    We did not sign against a real vault in this test, so we have not verified Jsign's Key Vault signing end to end. Our guide to signing an EXE on Linux covers Jsign and osslsigncode with other key stores.

    What does the Key Vault side cost?

    The Key Vault side of AzureSignTool costs about $60 a year for one signing key, because an RSA 3072 HSM key is billed at $5 a month and signing operations cost cents. These are Microsoft's list prices for US East as of November 2026 (a few regions cost more), and the certificate from your CA is not included.

    ItemList pricePer year
    Key Vault Premium: RSA 3072 HSM key$5 per key per month≈ $60
    Signing operations$0.15 per 10,000Cents
    Certificate renewal through the vault$3 per renewal request$3 if used
    The vault itselfNo charge listed$0

    Two details in Microsoft's price list matter here. Only HSM keys used in the previous 30 days are charged, and every version of a key counts as a separate key, so while an old and a new key version are both used within 30 days you pay for two. The $1-a-month RSA 2048 HSM key is not an option, because an RSA code signing key must be at least 3072 bits.

    If your CA accepts only key attestation, check before choosing a Premium vault: Microsoft documents attestation only for Managed HSM, and a Managed HSM pool lists at $3.20 an hour, about $2,336 a month or $28,032 a year. Managed HSM pools don't store certificates, and AzureSignTool reads the certificate from the vault, so that route needs a different signing tool as well.

    Which certificates can live in Key Vault?

    A code signing certificate can live in Key Vault only if its CA accepts a key generated in your vault and can confirm it is in hardware. Section 6.2.7.4.2 of the code signing requirements lists the ways a CA may confirm it: shipping you a hardware module, key attestation, a CA-prescribed crypto library, an IT audit, a report from the cloud key service's configuration, an auditor who watches the key being created, or a signing service.

    That list explains why some CAs work with Key Vault and others do not. A CA that insists on attestation needs a signed statement from the HSM, and Microsoft documents attestation for Managed HSM rather than for Premium vault keys. A CA that accepts an audit or configuration report can certify a Premium key. GlobalSign, for example, publishes its own AzureSignTool and Key Vault guide. Ask your CA which verification method it uses for a Key Vault key before you buy; our article on code signing key attestation goes through the methods one by one.

    Certificates sold as a CA's cloud signing service are a different product. Certum's Certification Practice Statement (v8.5) describes two kinds of code signing certificate: one issued on a cryptographic card, and a remote one whose key sits in Certum's HSM and is reached through your account. It describes no option for a key in your own HSM or cloud key service, and Certum's shop lists only cloud and card products, so a Key Vault route is not on offer. Signing with it goes through SimplySign Desktop and signtool instead, as in our SimplySign Desktop setup guide.

    When is AzureSignTool the right choice?

    AzureSignTool is the right choice when releases are signed by an unattended Windows build agent, your team already runs Azure, and your CA certifies keys held in a Premium vault. It is the wrong choice when the agents run Linux, when nobody wants to own a vault, or when the CA you want does not support it.

    • Choose AzureSignTool and Key Vault if signing must run with no person present, on Windows agents, under a managed identity, and you are willing to manage the vault, its access and the certificate renewal yourself.
    • Choose Microsoft's Artifact Signing if you are an organization in one of the listed countries (the US, Canada, the EU, the UK, Australia, New Zealand, Japan, South Korea, Singapore, Switzerland, Norway or Israel) or an individual in the US or Canada, and you don't need EV. Basic costs $9.99 a month with 5,000 signatures. We compare it with a CA certificate in Azure Trusted Signing vs a code signing certificate.
    • Choose a CA's cloud signing service if a person signs releases from a workstation on Windows, macOS or Linux, or you are outside Artifact Signing's countries. With Certum's SimplySign, each sign-in uses a code from the SimplySign mobile app, and Certum's manual documents no unattended mode, so it suits manual release signing rather than a fully automated pipeline. You pay for the certificate and nothing for a vault; compare Standard and EV on our code signing certificate page.

    Frequently Asked Questions

    Quick answers to related questions.

    Can I import an existing PFX file into Key Vault and sign with AzureSignTool?

    Not for a publicly trusted code signing certificate. Since 1 June 2023 the CA/Browser Forum's Baseline Requirements say that with a cloud key solution, key creation, storage and use must all stay inside the cloud HSM. A key that existed in a PFX file was created outside it, so generate a new key in the vault and request a new certificate.

    Which Key Vault permissions does AzureSignTool need?

    It needs to read the certificate and to sign with its key. GlobalSign's AzureSignTool guide grants the Get permission on certificates and the Sign permission on keys to the app registration that runs the tool.

    Why not use the cheaper RSA 2048 HSM key?

    Because a code signing certificate can't use it. Section 6.1.5.2 of the CA/Browser Forum's code signing requirements says an RSA key for a code signing certificate must be at least 3072 bits. In Key Vault's price list RSA 3072, RSA 4096 and ECC are the advanced key types, at $5 per key per month for the first 250 keys.

    Still Have Questions?

    Contact our support team with questions about certificates, installation, or technical issues.

    If you are still choosing how to hold your signing key, start with the guide to what code signing certificates cover. If a workstation and a phone code fit how you release, a Certum certificate delivered through SimplySign needs no vault or token; see the Standard and EV code signing options.

    Updated November 5, 2026: the key type is now RSA 3072 or 4096 only, because Microsoft's Trusted Root Program requirements say code signing does not support ECC keys.