Skip to content

Signing from workflows

Three workflow nodes, filed under Actions, work with signed PDFs:

Node What it does Connections
Sign PDF (crios.pdf.sign) Signs each item's PDF with a signing identity granted to the project, at B-B, B-T, B-LT or B-LTA, visibly or not signer (a signing identity, required), tsa (an RFC 3161 timestamp authority, optional)
Augment PDF signature (crios.pdf.augment) Raises an already-signed PDF's level: adds a timestamp, the long-term validation data, an archive timestamp, or renews one. Needs no signing identity tsa (required)
Verify PDF signatures (crios.pdf.verify) Validates every signature and timestamp of a PDF and routes the item by the verdict None

The steps reach the Crios signing service; they never hold a key or a provider credential.

Before the first signature

  1. An organization admin creates a signing identity and installs its certificate under Organization → Signing (PDF signing).
  2. The admin grants the identity to your project. The grant adds a connection named Signing: \<identity name> to the project's connectors. This connection cannot be created by hand: a Sign PDF step's signer slot offers the granted identities, and says where they come from when there are none.
  3. For B-T and above, a timestamp authority is needed: either the identity's default TSA, or an RFC 3161 timestamp authority connection — the TSA's URL and, if it requires one, its policy OID, with no secret — bound to the step's tsa slot. Its Test asks the TSA for one timestamp.

Sign PDF

Each input item is signed on its own; the item's Input field (data by default) must hold a PDF. The signed file is written to the Output field, and the item's JSON gains a signature object: level, field, signer (the certificate's subject), serial, time, timestamp_time (B-T and above), sha256 of the signed file and the log_id of its row in the signing log.

Parameter What it sets
Level B-B, B-T, B-LT or B-LTA; empty uses the identity's default
Field name An existing empty signature field (signed at its own place) or a new one; empty names it Signature1, Signature2, …
Reason, Location, Contact The signature's /Reason, /Location and /ContactInfo; empty uses the identity's defaults. The identity's policy may allow only listed reasons
Signature type approval, or certification, which locks what may change afterwards (Permissions 1, 2 or 3). A certification must be the document's first signature and needs the identity's policy to allow it
Appearance none (invisible), text (a box), or image (a PNG or JPEG of at most 1 MiB beside the text, read from Image field). An identity whose policy requires a visible signature refuses none
Page, Position Where a visible box goes: the page, and a corner, an edge's centre or the page's centre as the page is displayed
Template The box's text, one line per line

Single braces in the template

The template's placeholders are single-brace: {signer}, {date}, {reason} and {location} are filled in by the signing service when it signs. Double braces, {{ … }}, stay what they are everywhere else in a workflow — an expression, evaluated before the step runs. So Approved by {signer} for invoice {{ $json.invoice }} mixes both. Latin (Turkish included), Simplified Chinese, Japanese and Korean text is drawn; Devanagari is refused until text shaping exists.

A re-run never signs twice. Each item carries an idempotency key made of the run, the step and the item. If the step runs again — a retry, a worker that died after the service signed — the service returns the file it signed the first time, for 24 hours, and signs nothing new.

Refusals are input errors. A refusal the service would repeat — the identity is not granted to the project, is disabled, expired or revoked, or its policy refuses the level, reason, size or rate — fails the item with the policy rule named. An unreachable service is a transient error the run can retry.

Every signature is written to the organization's signing log and its audit log (signing.sign, with the run, node and item), whoever started it; the actor is the author of the workflow version that ran.

Augment PDF signature

Operation Result
addTimestamp B-T: a document timestamp over signatures that have none
toLT B-LT: every certificate, OCSP response and CRL in the file
toLTA (default) B-LTA: B-LT, then an archive timestamp
renew On a B-LTA file: the newest timestamp's validation data and a new archive timestamp, before the old one's certificate expires

Every signature in the file is augmented, whoever made it. The item's JSON gains an augment object (operation, level_before, level_after, log_id).

Verify PDF signatures

Validates every signature and document timestamp against the organization's trust anchors and, with Use EU trusted lists on, the EU trusted lists too. Items whose file has at least one signature and whose signatures and timestamps all pass leave on the first output; every other item — a failed or indeterminate signature, or a file with no signature — on the second. The report is written to verification (items per signature with its level, indication and findings, trusted_lists_consulted, file-level warnings); qualified_status is always not_assessed. Verification writes no log or audit row.

The same from the API

A project editor can sign without a workflow: POST /api/v1/projects/{id}/signing/sign, multipart, with the PDF in a file part and the options (the identity's ID and the parameters above) as JSON in an options part. The answer is the signed PDF; X-Signing-Log-Id, X-Signing-Level and X-Signing-Output-Sha256 describe it. Send an Idempotency-Key header to make a retry safe: a retry within 24 hours answers the first signature's file with X-Signing-Replayed: true. …/augment and …/verify take the same shape. The PAT scope is signing. See the PDF Signing routes in the API reference.