Skip to content

How to Sign Installers with Azure Artifact Signing in Paquet Builder

Azure Artifact Signing is a cloud-based code signing solution by Microsoft that eliminates the need for local code signing certificates. Instead, it securely signs executables through Microsoft’s artifact signing service, providing enhanced security and ease of use.

Using Azure Artifact Signing in Paquet Builder ensures a streamlined and automated code signing process directly within your installer build workflow.

Azure Artifact Signing offers several key benefits over traditional certificate-based signing:

  • Lower Cost: Traditional certificates can be expensive (hundreds of USD), while Azure Artifact Signing provides a pay-as-you-go model, making it more affordable.

  • No Need for USB Tokens: Standard certificates require a hardware security module (HSM) or USB token for private key storage, which can be cumbersome. Azure Artifact Signing eliminates this requirement.

  • Cloud-Based Security: Signing keys are managed entirely in the cloud, preventing theft or loss and reducing security risks.

  • Microsoft Trust and Compliance: As a Microsoft-backed solution, Azure Artifact Signing meets industry security standards while ensuring broad compatibility.

Before signing with Azure Artifact Signing, you need:

  • An Artifact Signing account with identity validation and a certificate profile.
  • A role assignment: The Artifact Signing Certificate Profile Signer role must be assigned to you or your team.
  • A compatible Windows version: Windows 11, Server 2016, or 10 (1809/October 2018 Update or newer)

Official Microsoft Documentation on Prerequisites: Azure Artifact Signing Integration Guide

To use Azure Artifact Signing with Paquet Builder, install the following tools:

This tool enables the integration of Azure Artifact Signing with SignTool.

Download the MSI Installer: Artifact Signing Client Tools

Azure CLI is required to authenticate your account with Azure Artifact Signing.

Installation Guide: Install Azure CLI for Windows

Direct MSI (64-bit) Download: Azure CLI MSI Installer

Why Install Azure CLI?

  • Used for logging into Azure before signing packages.
  • Required for managing Azure credentials securely.
  • Allows automated authentication when using Azure services with Paquet Builder for code signing.

5. Configuring Azure Artifact Signing in Paquet Builder

Section titled “5. Configuring Azure Artifact Signing in Paquet Builder”

Once everything is installed, you can configure Paquet Builder for Azure Artifact Signing:

Azure Artifact Signing configuration in Paquet Builder

  1. Open Paquet Builder

  2. Go to the Digitally Sign Package page

  3. Select Azure Artifact Signing from the dropdown

  4. Enter the required fields:

    • Artifact Signing Account Endpoint

      Enter the Artifact Signing Account Endpoint corresponding to your Azure region. Use the following table to find the correct endpoint:

      RegionRegion ClassEndpoint URI
      East USEastUShttps://eus.codesigning.azure.net
      West US 3WestUS3https://wus3.codesigning.azure.net
      West Central USWestCentralUShttps://wcus.codesigning.azure.net
      West US 2WestUS2https://wus2.codesigning.azure.net
      North EuropeNorthEuropehttps://neu.codesigning.azure.net
      West EuropeWestEuropehttps://weu.codesigning.azure.net

      Make sure to select the endpoint matching the region where your Azure Artifact Signing account was created.

    • Artifact Signing Account Name (your Azure account name)

      Azure Artifact Signing Accounts in Azure Portal

    • Certificate Profile Name (your signing certificate profile)

      Certificate Profiles in Azure Portal

  5. Before signing, authenticate in Azure CLI: Run the following command in PowerShell or Command Prompt:

    Terminal window
    az login

    This will open a browser window to authenticate your Azure account.

Once this is configured, Paquet Builder will automatically invoke the Microsoft SignTool utility to sign your installer EXE file. All signing operations are listed in the compilation log:

Configuring SignTool and Azure Artifact Signing Paths in Paquet Builder

Section titled “Configuring SignTool and Azure Artifact Signing Paths in Paquet Builder”

To ensure that Paquet Builder can correctly sign your installer packages, you must configure the paths to SignTool.exe and its Azure Artifact Signing extension (dlib) in the Environment Options. Paquet Builder should automatically do that.

  • Navigate to Environment Options -> Code Signing.

  • Locate the SignTool.exe Path field.

  • Click on the magnifying glass to let Paquet Builder automatically detect the installed SignTool.exe.

  • If the path is not found, enter it manually. The default installation location is:

    C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\signtool.exe

Setting the Path to Azure Artifact Signing dlib

Section titled “Setting the Path to Azure Artifact Signing dlib”

If you are using Azure Artifact Signing, you must configure the Artifact Signing dlib Path field. The Azure.CodeSigning.Dlib.dll file is installed by the Artifact Signing Client Tools Installer (see above).

  • Locate the Artifact Signing dlib Path field.

  • Click on the magnifying glass to let Paquet Builder automatically find the extension.

  • If it is not found, enter the path manually:

    C:\Users\LOGIN NAME\AppData\Local\Microsoft\MicrosoftArtifactSigningClientTools\Azure.CodeSigning.Dlib.dll

Replace LOGIN NAME with your actual Windows username.