SSLFree guide for release teams
Your guide

Signing Releases From Your Pipeline Without a Hardware Token

A working guide to cloud code signing for CI/CD and release teams. Rules and tools checked October 28, 2026.

Jump to the checklist

1. What the rules say now

Two requirements decide how your pipeline signs. Both come from the CA/Browser Forum Code Signing Baseline Requirements, edition 3.11.0, published June 16, 2026.

Where the key lives. Since June 1, 2023, the private key of a code signing certificate must be generated and protected in one of three places: a hardware crypto module certified to at least FIPS 140-2 Level 2 or Common Criteria EAL 4+; a cloud key-protection solution that keeps the key inside such a module and logs access; or a signing service that meets the signing-service rules (section 6.2.7.3). Those rules ask for a module at FIPS 140-2 Level 3 or Common Criteria EAL 4+, and for multi-factor or server-to-server authentication on every signing request.

How long a certificate lasts. Certificates issued on or after March 1, 2026 may be valid for at most 460 days. Before that date the limit was 39 months. SSL issues code signing certificates with a 458-day maximum from February 27, 2026. Certificates issued before that date stay valid until their original expiry.

For a release team that adds up to two jobs:

  1. Let the build run sign without a person walking a USB token to a machine.
  2. Plan for a certificate that's replaced about every fifteen months instead of about every three years.

The rest of this guide covers both.

2. Three places a signing key can live

Option Where the key sits What a pipeline needs Watch for
Hardware token A device you own and plug in The token attached to whichever machine signs SSL's own product page calls a USB token a problem for modern CI/CD pipelines: the job has to run on the machine that holds the token
Your own cloud HSM AWS CloudHSM, Google Cloud HSM or Azure Dedicated HSM, in your account Network access to that HSM from the signing job The certificate authority must attest the key with the provider before it issues the certificate, so you set this up before you order
A signing service The provider's cloud HSM; the key isn't exportable An account, a credential and a one-time-password secret, sent over the network You now protect a credential that can request signatures, not a key

SSL's signing service is eSigner for Code. Its keys are held in a FIPS 140-2 validated cloud HSM. IV, OV and EV code signing certificates from SSL all work with it. It's a separate subscription from the certificate: you buy the certificate first, then enrol it. New certificates include 30 days of eSigner cloud signing, then subscription fees apply.

Pick the row that matches how your releases are built today. With the first row, every signing job has to be routed to the machine that holds the token.

3. Build the signing step

The steps below use CodeSignTool, SSL's command line tool. It's a Java program, so it runs on Windows, Linux and macOS. The Windows download includes a Java runtime; on Linux and macOS you install Java yourself. On Windows you can instead use the eSigner Crypto Key Adapter, which plugs into signtool.exe. It's a Windows component. There's also a signing API (the Cloud Signature Consortium API) for anything else.

Step 1. Try it in the sandbox first. SSL runs a separate eSigner sandbox with demo credentials, so you can wire up the pipeline before a production certificate exists: https://www.ssl.com/guide/esigner-demo-credentials-and-certificates/. Use the demo values only for the trial.

Step 2. List your credentials. With an account that holds more than one eSigner certificate, every command needs to say which one:

CodeSignTool get_credential_ids -username=$ESIGNER_USER -password=$ESIGNER_PASSWORD
CodeSignTool credential_info -credential_id=$CREDENTIAL_ID -username=$ESIGNER_USER -password=$ESIGNER_PASSWORD

-credential_id is only required when the account has more than one eSigner code signing certificate. On Linux and macOS the command is CodeSignTool.sh; on Windows it's CodeSignTool.bat.

Step 3. Sign one file.

CodeSignTool sign -username=$ESIGNER_USER -password=$ESIGNER_PASSWORD -credential_id=$CREDENTIAL_ID -totp_secret=$ESIGNER_TOTP_SECRET -input_file_path=build/app.exe -output_dir_path=signed

Three details decide whether this runs unattended:

  • The one-time password. Without -totp_secret the tool stops and asks for a code. With it, the tool calculates the code itself. The secret must belong to the same user and certificate you're signing with, and the runner's clock must be synchronised with a reliable time server. A wrong secret or a drifting clock both produce Error: invalid otp.
  • The output folder. If you leave out -output_dir_path, the signed file replaces the input file. Signing into a separate folder keeps the unsigned build around for comparison.
  • The timestamp. sign signs and timestamps in one step. SSL says signatures that were timestamped stay valid after the certificate expires, which matters when you're on a 458-day cycle. Windows signtool verify can warn when a signature has no timestamp (/tw).

Step 4. Sign a whole folder. batch_sign takes -input_dir_path instead of a file, signs up to 100 files, and uses one one-time password for the batch.

Step 5. Keep the credentials out of the repository. Store the username, password, TOTP secret and credential ID as secrets in your build tool and read them as environment variables, as in the commands above. Don't write them into scripts or command lines that your build tool prints.

Step 6. Know what leaves the runner. The sign and hash commands send hashes of your files to the signing service, not the files. scan_code is different: it's an optional malware scan before signing, and it uploads the file. Leave it out of the job if your build must stay inside your network.

If you use GitHub Actions

SSL documents an action, sslcom/actions-codesigner, and its example references @develop. The action is published from a branch rather than tagged releases, so a reference to it can change under you. Either read the code and pin a full commit SHA, or skip the action and download a released CodeSignTool (the latest release is 1.3.2, published May 9, 2025) and call it from a script step. Both keep the version under your control.

4. Plan for a shorter certificate life

Arithmetic for planning: 365 days divided by the maximum validity, for a certificate that's replaced when it reaches its limit. Reference volume: 10 code signing certificates (for example, one per product or per signing team).

Maximum validity Days Certificates issued per year, per certificate Per year at 10 certificates
Issued before March 1, 2026: 39 months about 1,187 about 0.3 about 3
Issued from February 27, 2026 by SSL: 458 days 458 about 0.8 about 8
Industry cap from March 1, 2026: 460 days 460 about 0.8 about 8

Read it against your own count: five certificates is about 4 issuances a year, twenty is about 16. This is the maximum validity, not a measure of anyone's practice.

What each issuance involves:

  • A renewal is a new certificate. An existing certificate can't be modified, so you get validation, key generation and installation again. For EV, OV and IV certificates, renewal often repeats validation steps such as a verification call and document submission.
  • The total term of an order isn't shortened. Certificates issued within the term may need to be reissued more often.
  • SSL's pages don't say whether the credential ID stays the same after a reissue. After each reissue, run get_credential_ids and update the credential ID your pipeline reads.

Put every certificate's expiry on a calendar the release team owns, with the first reminder before the validation steps would need to start.

5. Secrets, access and what to do if one leaks

With a signing service, the key can't be exported. What an attacker would take is the access path: the account password, the TOTP secret and the credential ID, which together can request signatures.

Keep that path small:

  • Give each signing and management role to a named person. SSL's code signing automation guide describes assigning roles to specific employees, knowing who signed and when, and changing signing privileges at any point.
  • Limit which repositories, branches and workflows can read the secrets.
  • Set a rotation date for the secrets, and rotate when anyone with access leaves.

If you think they have leaked:

  1. Rotate the secrets in your build tool first, so the pipeline stops using the old ones.
  2. Compare the signing history with your build history for anything you didn't build.
  3. If a certificate may be compromised, ask for revocation in writing. A certificate authority must revoke within 24 hours of a written request from the subscriber or of evidence that the private key is compromised.

6. Verify and troubleshoot

Verify on Windows. signtool verify /pa /v app.exe checks the signature against the default Authenticode policy and prints detail. Add /tw to warn when there's no timestamp.

What you see Likely cause What to do
Error: invalid otp The TOTP secret belongs to a different user or certificate, the secret is wrong, or the runner clock is off Check the secret against the credential, then sync the clock
The unsigned file was replaced No -output_dir_path Add an output folder
The tool asks which certificate More than one eSigner certificate on the account Pass -credential_id
A Visual Studio-built MSI shows an invalid signature SSL notes this has been seen SSL suggests building the MSI with the WiX Toolset
Java not found on Linux or macOS Java isn't bundled outside Windows Install Java on the runner
A pipeline that worked now fails after a reissue The credential ID may have changed Run get_credential_ids and update the variable

7. Checklist

  • Every code signing certificate's key is in a module or service that meets the 2023 key-protection rule.
  • A sandbox run has signed a test file from the real runner.
  • Username, password, TOTP secret and credential ID are build-tool secrets, not script text.
  • The runner clock syncs with a time server.
  • Signing writes to a separate output folder.
  • Signed files verify with signtool verify /pa /v, and the signature carries a timestamp.
  • Any third-party action is pinned to a reviewed commit SHA, or replaced with a pinned CodeSignTool release.
  • Every certificate's expiry is on the release team's calendar, sized for 458 to 460 days.
  • Someone owns the secrets, and a rotation date is set.
  • The leak steps in section 5 are written where the on-call engineer can find them.

Questions about a setup: https://www.ssl.com/contact/

Want to try signing before you read?

SSL runs a sandbox with demo credentials, so you can test a signing step without a production certificate.

Open the sandbox guide

Privacy policy  |  Contact SSL

We’d love your feedback

Take our survey and let us know your thoughts on your recent purchase.

Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

For more information read our Cookie and privacy statement.

3rd Party Cookies

This website uses Google Analytics & Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping these cookies enabled helps us to improve our website.

Show details