Since June 2023 a publicly trusted Windows code signing key must live in a hardware crypto module, which has pushed many developers from USB tokens towards cloud HSM services such as Microsoft's Artifact Signing (formerly Trusted Signing). This guide explains how Authenticode signing works on Windows today, what the CA/Browser Forum rules require, how Artifact Signing is structured and wired into SignTool and CI pipelines, why timestamping is mandatory with short-lived certificates, and what SmartScreen reputation does and does not depend on. It treats the signing identity as what it is: one of the most privileged non-human identities a software publisher owns.
The cross-platform view of signing programmes, key custody options and revocation is in the Code Signing Security Guide. This page stays with Windows Authenticode and Microsoft's managed service.
This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.
Key takeaways
- The CA/Browser Forum Code Signing Baseline Requirements oblige CAs to ensure subscriber private keys are generated, stored and used in a suitable hardware crypto module. Exporting a publicly trusted signing key to a build server's disk is no longer an option.
- For certificates issued on or after 1 March 2026, the maximum validity of a publicly trusted code signing certificate is 460 days.
- Artifact Signing keeps keys in FIPS 140-3 Level 3 certified HSMs managed by Microsoft and issues certificates with a three-day validity, so every signature must carry an RFC 3161 timestamp.
- Access to signing is an Azure role assignment. The identity holding the Certificate Profile Signer role can sign as your company, so treat it as a privileged machine identity.
- Extended Validation certificates no longer give instant SmartScreen reputation. Reputation builds from publisher identity and file hash over time.
- Always sign with SHA-256 (
/fd SHA256), timestamp with/trand/td SHA256, and verify withsigntool verify /pabefore release.
How Authenticode signing works
Authenticode is Microsoft's code signing format for Windows executables, DLLs, drivers, installers, scripts and catalog files. A signature binds a file hash to a code signing certificate chained to a trusted root. At install or run time Windows recomputes the hash, checks the signature and chain, and uses the result in several places: User Account Control prompts, SmartScreen, App Control for Business policies, Smart App Control and driver loading.
A signature has three moving parts:
- The file digest. SignTool requires you to state the digest algorithm with
/fd, and the Microsoft documentation recommends SHA-256. SHA-384 and stronger validation require Windows 11 or Windows 10 with the November 2022 update. Windows SDK builds 20236 and later require the digest algorithm to be specified. - The signing certificate. Its subject is your verified organisation or individual name, which is what users see as the publisher.
- The timestamp countersignature. An RFC 3161 timestamp proves the signature existed while the certificate was valid, so the signature continues to verify after the certificate expires. Without one, a signature stops validating when the certificate expires.
The signing operation itself only needs the digest. SignTool can send the digest to an external signer through a digest signing library (/dlib), which is how cloud HSM services plug in without the file ever leaving the build machine.
The hardware key rule and certificate lifetimes
The CA/Browser Forum Code Signing Baseline Requirements (version 3.11.0, June 2026 at the time of writing) govern publicly trusted code signing certificates. Two rules drive current practice:
- Hardware protected keys. From 1 June 2023, CAs must ensure the subscriber's private key is generated, stored and used in a suitable hardware crypto module. Signing services must protect private keys in a FIPS 140-2 Level 2 (or equivalent) module. In practice that means a vendor-supplied USB token, your own HSM, or a cloud HSM or signing service.
- Shorter validity. For certificates issued on or after 1 March 2026, the validity period must not exceed 460 days. Renewal is now an annual operational task, not a three-year event. The Code Signing Certificate Validity Changes guide covers the transition.
The requirements also tightened the timestamping side: timestamp authorities must keep their root and subordinate CA keys in offline hardware, and CAs may not support SHA-1 for timestamp tokens.
The effect on engineering teams is that a signing key can no longer be a PFX file in a pipeline secret. Each of the remaining options has an identity question attached. A USB token is tied to a physical machine and a PIN, which is hard to use from ephemeral CI runners and easy to leave plugged in. A self-managed HSM needs its own access control and audit. A managed service such as Artifact Signing moves custody to the provider and turns signing access into a cloud role assignment.
Artifact Signing: structure and identity validation
Microsoft describes Artifact Signing as a fully managed, end-to-end signing solution. Its documented properties include zero-touch certificate lifecycle management inside FIPS 140-3 Level 3 certified HSMs, support for external timestamping services, and content-confidential digest signing in which the file never leaves your endpoint. Microsoft's SmartScreen guidance calls it the recommended code signing service for non-Store distribution.
The resource model is simple:
- Create an Artifact Signing account inside an Azure resource group. Accounts come in Basic and Premium SKUs.
- Complete an identity validation. The verified organisation or individual supplies the subject distinguished name values that appear in the certificate. Public Trust validation checks all identity values under the Microsoft PKI Services Third-Party Certification Practice Statement. Private Trust validation involves minimal verification and is meant for relying parties that already trust a private identity.
- Create one or more certificate profiles. A completed identity validation is a prerequisite. Profile types include Public Trust (default-trusted on Windows for code signing), Private Trust, VBS enclave, code integrity policy and Public Trust Test. Public Trust Test certificates are not trusted by default and carry the lifetime EKU, which makes validation respect the certificate lifetime even when a timestamp is present.
Certificates are issued and renewed by the service and have a three-day validity. You never hold a long-lived private key, and there is nothing to export. The trade-off is that an expired certificate is the normal state of every past signature, so timestamping is not optional.
Roles: who can sign as your company
Access is controlled with Azure role-based access control. The documentation describes two custom roles:
| Role | Grants | Who should hold it |
|---|---|---|
| Identity Verifier | Create and manage identity validations (Azure portal only) | A small number of named people in legal, security or release management |
| Certificate Profile Signer | Sign with a certificate profile | The build pipeline's workload identity, scoped to the specific profile |
Role names in the documentation were changing from the Trusted Signing to the Artifact Signing prefix during 2026, so check the names in your tenant.
The Signer role is the signing key in all but name. Anyone, or any workload, holding it can produce binaries that Windows will show as published by your organisation. Design the assignment accordingly:
- Assign the Signer role to a dedicated workload identity per release pipeline, at the certificate profile scope, not to people and not at subscription or resource group scope.
- Use federated credentials (for example GitHub Actions or Azure DevOps workload identity federation) so there is no client secret to leak. The GitHub Actions OIDC Federation Hardening Guide shows the pattern, and federation subjects should be pinned to the release branch or environment.
- Keep Owner, Contributor and User Access Administrator on the signing account's resource group to a break-glass group with privileged access controls, because they can grant the Signer role.
- Do not give developers standing Signer access for convenience. Test signing should use a Public Trust Test or Private Trust profile.
- Include the signing workload identity and its role assignments in your non-human identity inventory and access reviews.
Signing with SignTool, GitHub Actions and Azure DevOps
SignTool with the digest signing library
The documented SignTool integration needs the Windows SDK SignTool (minimum version 10.0.2261.755; the 20348 SDK is not supported with the dlib), the .NET 8 runtime matching the SignTool architecture, and the Artifact Signing dlib package, which Microsoft also ships in a client tools installer. A metadata.json file names the account endpoint, account name and certificate profile, plus an optional CorrelationId that can tie each request to a build ID.
A documented sign command looks like this:
signtool sign /v /fd SHA256 /tr "http://timestamp.acs.microsoft.com" /td SHA256 /dlib "<path>\x64\Azure.CodeSigning.Dlib.dll" /dmdf "<path>\metadata.json" <file>
Points that trip teams up:
- The endpoint must match the region of both the account and the certificate profile. A mismatch commonly causes a 403 Forbidden response and an internal
SignerSign()failure. - Authentication uses
DefaultAzureCredential, which tries several methods in order. In pipelines, useExcludeCredentialsinmetadata.jsonto force the one credential type you intend, so a developer's cached CLI login or a stray environment variable is never used to sign. - Use the x86 SignTool and dlib for 32-bit builds.
- If
/tris omitted the file is not timestamped and SignTool only warns. Make a missing timestamp a build failure.
CI integrations
Microsoft documents a GitHub Action, an Azure DevOps task (AzureArtifactSigning@<version>, installed from the Visual Studio Marketplace into the organisation), a PowerShell module for Authenticode, an Az PowerShell module for App Control for Business code integrity policy signing, and an SDK for custom integrations. Whichever you use:
- Run signing in a separate release job or stage that only runs for protected branches or tags and requires approval for production profiles.
- Sign build outputs produced by the pipeline, never files uploaded by a person.
- Pin third-party actions and tasks to a specific version or commit, because the signing job holds a powerful token. See How to Pin GitHub Actions to Commit SHAs.
- Log the file name, hash, profile and correlation ID of every signature to a store the pipeline cannot rewrite.
Timestamping with short-lived certificates
With a three-day certificate, every signature outlives its certificate within days. The documentation states plainly that timestamping is what keeps signatures verifiable after expiry, and points to the Microsoft Public RSA Time Stamping Authority at http://timestamp.acs.microsoft.com/.
SignTool's timestamp options:
/tr <URL>names an RFC 3161 time stamp server. If neither/trnor the legacy/tis given, the file is not timestamped./trand/tcannot be combined./td SHA256requests the digest algorithm the timestamp server should use. Use SHA-256.- Timestamping failures produce a warning, not an error, by default. Retry with backoff and fail the build if the timestamp is still missing.
Timestamping also changes revocation behaviour. NHI Mgmt Group advice: plan on the basis that, when a signing certificate is revoked with a specific revocation date, signatures timestamped before that date may continue to validate while later ones fail, and confirm the behaviour for your signing setup with Microsoft documentation. That is why incident response for a signing compromise needs an accurate time of first misuse. The Compromised Code Signing Certificate Playbook covers this.
SmartScreen reputation
SmartScreen is often the reason teams buy certificates, and the guidance has changed. Microsoft's current documentation says:
- Signing with an EV certificate used to give positive SmartScreen reputation by default, but this behaviour no longer exists. EV may matter for enterprise procurement, but it no longer affects SmartScreen.
- SmartScreen evaluates publisher reputation and file hash reputation. A newly signed binary can still show a warning until its hash or publisher certificate accumulates enough positive evidence.
- Unsigned files start at zero reputation for every new version. Reputation cannot carry over between versions unless both were signed with the same publisher identity.
- Reputation builds automatically. There is no exact threshold, and it can take several weeks and hundreds of clean installs. There is no submission mechanism for consumer reputation, although enterprise administrators can submit files through the Microsoft Security Intelligence portal for managed deployments.
- Apps distributed through the Microsoft Store are signed by Microsoft and are not subject to SmartScreen download warnings.
For Artifact Signing, Microsoft says reputation accumulates over time based on download volume and behaviour. The practical lessons: keep one stable publisher identity rather than creating new identity validations per product, sign every release including betas, and plan for warnings on a brand new publisher. Never tell users to bypass SmartScreen for a signed build as a routine step. The Smart App Control and SmartScreen guide covers the endpoint side.
Verification and monitoring
Verify every signed artefact before release with signtool verify /pa /v <file>. The /pa option uses the Default Authentication Verification Policy, which is the right policy for applications. Without it SignTool applies the Windows Driver Verification Policy. Check that the signer subject is your expected publisher, the digest is SHA-256, and a timestamp countersignature is present.
Monitoring should answer one question: was anything signed that should not have been?
- Reconcile signing logs (Azure activity and the signing service's own records) against release records. Any signature without a matching pipeline run is an incident.
- Alert on role assignment changes on the signing account and certificate profiles, and on sign-ins by the signing workload identity from unexpected sources.
- Alert on new identity validations or certificate profiles.
- Watch for your publisher name on files in threat intelligence feeds and your own endpoint telemetry that do not match your release hashes.
Common failure patterns
- No timestamp. Builds pass with only a SignTool warning, and three days later every binary fails verification.
- Signer role at the wrong scope. The pipeline identity or a developer group holds the Signer role at subscription or resource group level, covering every profile.
- Secret-based pipeline credentials. A client secret for the signing identity is stored in CI variables instead of workload identity federation.
- Credential confusion.
DefaultAzureCredentialpicks up an unexpected identity on a shared build agent. - Region mismatch. The endpoint and profile regions differ, producing 403 errors that are then fixed by over-granting permissions.
- Signing anything submitted. The signing job accepts arbitrary files, turning it into a signing oracle.
- Buying EV for SmartScreen. Budget goes on EV certificates expecting instant reputation that no longer exists.
- Legacy SHA-1 or missing
/fd. Old scripts break with current SDKs or produce weak signatures.
Practitioner checklist
- Publicly trusted signing keys are held only in a hardware crypto module or a managed HSM service; no PFX files exist in pipelines.
- Certificate renewals are scheduled against the 460-day maximum for certificates issued from 1 March 2026.
- Every signature uses
/fd SHA256,/trwith an RFC 3161 server and/td SHA256, and a missing timestamp fails the build. - The Certificate Profile Signer role is assigned only to dedicated pipeline workload identities at certificate profile scope, using federated credentials.
- Identity Verifier and owner-level roles on the signing account are limited to named, privileged administrators.
metadata.jsonusesExcludeCredentialsto force the intended credential type.- Signing runs in a protected release stage, signs only pipeline-built artefacts, and pins third-party actions and tasks.
- Every release is verified with
signtool verify /pa, and signing logs are reconciled with release records. - Alerts exist for role changes, new identity validations or profiles, and unexpected signing activity.
- A single stable publisher identity is used to build SmartScreen reputation, and the compromise playbook is tested.
Standards and references
- Microsoft Learn: What is Artifact Signing?
- Microsoft Learn: Artifact Signing resources and roles
- Microsoft Learn: Set up signing integrations to use Artifact Signing
- Microsoft Learn: SignTool
- Microsoft Learn: SmartScreen reputation for Windows app developers
- CA/Browser Forum: Code Signing Baseline Requirements
- OpenSSF: SLSA v1.0 Security Levels
- NIST: SP 800-218 Secure Software Development Framework (SSDF) Version 1.1
Related NHI Mgmt Group resources: Code Signing Security Guide · Code Signing Certificate Validity Changes · Smart App Control and SmartScreen · Keyless vs Key-Based Code Signing