7.9 7.8.1 7.8 7.7 7.6 7.5 7.4 7.3.2
7.9 7.8.1 7.8 7.7 7.6 7.5 7.4 7.3.2

MS Authenticode Timestamp Signer

The MS Authenticode Timestamp Signer is compatible with the Microsoft Authenticode Time Stamping code signing.

Fully qualified class name: org.signserver.server.signers.tsa.MSAuthCodeTimeStampSigner.

Overview

By default, the MS SignTool expects a MS Authenticode Timestamp Signer. Though you can set the TSA as Authenticode, this is the legacy format and not preferable. Instead, set the TSA to use RFC#3161. See Timestamp Signer for more information.

In the Microsoft SignTool, use the /t flag to specify the URL of the MS Authenticode Timestamp server.

To download a sample configuration file for this Worker, see Sample Worker Configurations.

For information on the interfaces this Worker can be called through, see Supported Interfaces by Worker.

Available Properties

Property

Default

Description

INCLUDE_SIGNING_CERTIFICATE_ATTRIBUTE

false

(Optional) Specifies if the signing certificate attribute (id-aa-signingCertificate) [RFC2634] should be included in the response.

SIGNATUREALGORITHM

SHA256withRSA

Property specifying the algorithm used to sign the timestamp.

TIMESOURCE

None

(Optional) Property containing the fully qualified name of the class implementing the ITimeSource that should be used. This property has the same values as for the Timestamp Signer.


Certificate Requirements

  • A timestamp signer certificate must have the extended key usage extension present and marked as critical.

  • The extended key usage extension must contain the timeStamping key purpose ID and only that one.


Example Use Case

The following example shows how to use the Signer to sign an .exe file and verify the signature:

Prerequisites

  • SignTool installed

  • .NET runtime installed

Sign & Verify

  1. Set up your MS Authenticode Timestamp Signer.

  2. Open a command prompt and go to the Bin directory within the SDK:

    cd C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
    
  3. Use SignTool to sign the example .exe file:

    signtool.exe timestamp /t http://10.0.2.2:8080/signserver/tsa?workerName=MSAuthCodeTimeStampSigner example.exe
    
  1. After this you can manually inspect the certificate stored in the .exe file by navigating to the folder in the file explorer.

  2. Right-click on the file, and select Properties.

  3. Select the Digital Signatures tab.

  4. Select the certificate and click on Details.

  5. Select the Timestamp signature under Countersignatures, and click Details to view the signature.