The CMS Signer can sign arbitrary data and produces a CMS (RFC 3852) SignedData structure in binary format with or without the content encapsulated. Currently, the Signer certificate is always included.
Fully qualified class name: org.signserver.module.cmssigner.CMSSigner.
Overview
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.
For a guide on signing code with the CMS Signer, see Code Signing with CMS Signatures.
For a guide on signing code with client-side hashing using a CMS Signer, see Code Signing with Client-side Hashing.
Available Properties
|
Property |
Default |
Description |
|---|---|---|
|
|
- |
Comma-separated list of accepted hash digest algorithms. When a request is consisting of a pre-computed hash, the requested digest algorithm must be among the values specified in this property. The property does not have a default value, and must be specified if client-side hashing is set as the default, or if overriding via the request is allowed. |
|
|
|
Property specifying if the request is allowed to override the behavior defined via |
|
|
|
Property specifying if the content OID to use in the SignedData object should be allowed to be overridden by request metadata |
|
|
|
Property specifying if the requestor can request an other value for |
|
|
|
Property specifying if the request data should be considered to be a pre-computed (by the requesting client) hash. If this is set to to |
|
|
CMS data OID ( |
Property specifying the content OID to use in the SignedData object by default. If not specified, the default CMS data OID ( |
|
|
|
Property specifying if the resulting data structure should be parsed and re-encoded using DER encoding. This option is performed in memory and thus does not support large files. |
|
|
|
Property specifying if a detached signature (external signature) should be used. The detached signature is a signature where the content is not included/encapsulated. |
|
|
|
Property specifying that the signature should be calculated directly over the content and not over signed attributes. If the property is set to Setting this to |
|
|
|
(Optional) Specifies if a digest of the response should be computed and logged. |
|
|
|
(Optional) Specifies if a digest of the request should be computed and logged. |
|
|
|
Algorithm used to create the message digest (hash) of the response document to put in the log. |
|
|
|
Algorithm used to create the message digest (hash) of the request document to put in the log. |
|
|
Depends on the signing key |
Property specifying the algorithm used to sign the data. Depending on the signing key, the default is either:
|
Request Parameters
The following metadata parameters can be specified in a request:
|
Property |
Description |
|---|---|
|
|
Specifies the content OID to use in the SignedData structure. This is only allowed if the Signer is configures to allow overriding content OID. |
|
|
The hash digest algorithm of the pre-computed hash. |
|
|
If this property is set and defined as |
Signing a Pre-computed Hash
For background and information on how to use this mode with CMS signatures, see Client Side Hashing.