Skip to content

Setting up PDF signing

This page takes you from nothing to a signed, verified PDF, in the order the steps have to happen. Each step names who does it:

Who Does
Operator (self-hosted only) Deploys the signing service
Instance administrator Checks the licence and turns signing on for an organization
Your cloud administrator Creates the key and a principal that may use it
Your certificate authority (CA) Issues the certificate for that key
Organization owner or admin Creates the signing identity, installs its certificate, sets its policy and grants it to projects
Project editor Signs and verifies PDFs from a workflow or the API

On Crios Cloud the operator steps are done for you: start at step 2.

Before you start, have these ready

  • A cloud key holder you control: AWS KMS, Google Cloud KMS, Azure Key Vault or Managed HSM, or an Alibaba Cloud KMS instance. USB hardware tokens are not supported in this version.
  • A certificate authority that will issue a certificate for a key it never sees, from a certificate signing request (CSR). For internal seals this is usually your organization's own private CA.
  • For signatures that carry a trusted time (level B-T and above): the URL of an RFC 3161 timestamp authority (TSA).

1. Deploy the signing service

Operator, self-hosted installs only.

The signing service is a separate deployment in the same Helm release. It is the only part of Crios that talks to key holders; the rest of the platform reaches it over the cluster network. Set both values, then upgrade the release:

signing-service:
  enabled: true
orchestrator:
  signing:
    enabled: true

The chart refuses one value without the other. It generates the keys the orchestrator and the signing service use between themselves, and the Vault role that keeps provider credentials where no project, workflow or sandbox can read them.

  • Its database. Where the CloudNativePG operator runs, set signing-service.postgres.mode: cnpg and an object store for its backups (signing-service.postgres.cnpg.backup.objectStore). The signing log lives there and is your record of every signature: back it up.
  • A private key holder endpoint. If a key holder is reached through a private address (an Alibaba KMS instance, a VPC endpoint), list its host, port and address range under signing-service.providerEndpoints. The service refuses private addresses that are not listed.
  • Development key. A development cluster may set signing-service.allowDevIdentities: true to try signing with a key held in the service's memory. Production ignores it.
  • Memory. The service's limit is 1 GiB, enough for two signatures of the largest accepted file (32 MiB) at once. Raise it if you expect more large signatures in parallel.

2. Check the licence

Instance administrator.

Open Admin → License. In enforce mode, the licence must include the pdf-signing feature. Enterprise licences include every feature; other editions need it granted. Development builds in warn mode bypass this licence check, as other licensed development features do. The organization must still opt in below. See Licensing.

3. Turn signing on for the organization

Instance administrator.

  1. Open Admin → Organizations.
  2. Click Edit organization on the organization's row.
  3. Switch on PDF signing and click Save changes.

The organization's row now shows a PDF signing chip, and its owners and admins see a Signing tab on the Organization page. Switching it off hides the tab again and stops every signature at once; identities, the signing log and grants are kept.

Using the API instead

PATCH /api/v1/admin/organizations/{id} with {"features": {"signing.pdf": true}}, as an instance administrator.

If the tab does not appear, see Troubleshooting.

4. Prepare the key in your cloud

Your cloud administrator.

  1. Create an asymmetric signing key. Use RSA 3072 bits or more, or ECDSA P-256 or P-384. An RSA 2048 key is accepted only with a certificate issued by 31 December 2026 and valid no later than 31 December 2028, under the algorithm rules Crios follows (ETSI TS 119 312): do not start with one.
  2. Create a principal for this key alone, with static credentials: an IAM user or role (AWS), a service account key file (Google), an app registration with a client secret (Azure), or an application access point with a client key (Alibaba). Give it only the permissions listed for its provider in Key holders and their grants: sign, read the public key, read the key's metadata.
  3. Note the versioned key reference the form asks for: a key ARN, a cryptoKeyVersions/N resource name, a key URL with its version, or a key id with its version id. A versionless key or an alias is refused, so a key rotation in the cloud never changes silently which key signs.

One principal per identity, scoped to one key, is the rule: the credential can then sign with that key and nothing else.

5. Create the signing identity

Organization owner or admin.

Open Organization → Signing → Identities → New identity:

  1. Key holder. Pick the provider.
  2. Credential. Name the identity (for example Finance seal), then fill in the provider's settings and its credential. The credential is sent once to the signing service's vault and never shown again.
  3. Key. Choose the signature algorithm where the key holder lets you, and create the identity. Crios opens the key holder now, so a wrong credential, a missing permission or a wrong key is reported here, not at the first signature.
  4. Certificate. Request one now (next step), or leave it and come back from the identity's page.
  5. Test. Asks the key holder to sign a probe message and checks the signature against the key. It signs no document.

The identity stays Needs a certificate until step 6 is done.

6. Get a certificate and install it

Organization owner or admin, and your CA.

  1. On the identity's page, choose Request a certificate. Fill in the subject: at least a common name, usually your organization's legal name for a seal, or a person's name for a personal signature.
  2. Download the CSR and send it to your CA. The CA signs it; the private key never leaves your key holder.
  3. When the CA answers, choose Install a certificate and paste or upload the issued certificate followed by its chain (intermediates, then the root), in PEM.

The install checks that the certificate is for this identity's key, is valid today, allows signing, and that its chain links up. A refusal says which check failed. The identity becomes Active.

For a Development key, there is a shorter path. After Create request, choose Create & install with Crios-Dev. Crios verifies that request, issues its certificate from the local Crios-Dev root CA (valid through 9999), and installs it. You can then download the request, private key, public key, leaf certificate and root CA certificate separately. Keep the private key secure and use these files only for development. The root CA is local to the signing service process and is replaced when that process restarts.

Never paste a private key

Only certificates are installed. The page refuses text that holds a private key before anything is sent.

Trust anchors. So that Crios's own verification trusts your signatures, add your CA's root certificate under Organization → Signing → Trust anchors. A signature chaining to an anchor verifies as trusted.

7. Set the identity's defaults and policy

Organization owner or admin.

On the identity's page:

  • Defaults are used when a workflow step or API call does not say: the level (start with B-T for documents that must stay verifiable for years, B-B for short-lived ones), the timestamp authority, and the reason, location and contact.
  • Policy limits what the identity will sign: the allowed levels and reasons, the largest document, signatures per minute and per day, whether a timestamp or a visible signature is required, and whether certification signatures are allowed. A request the policy refuses is logged and never reaches the key holder.

For B-LT and B-LTA the certificate's revocation status must be reachable: an OCSP responder or a CRL named in the certificate. Private CAs often have neither; such an identity can still sign at B-B and B-T.

8. Grant the identity to a project

Organization owner or admin.

Under Projects on the identity's page, pick the project and click Grant. The project gets a connection named Signing: \<identity name> in its connectors. It holds only a handle for the grant, never the provider credential, and nobody in the project can create, edit or delete it. Withdraw removes it, and the project's signing steps stop working.

9. Sign from a workflow

Project editor.

A minimal flow, in the workflow editor:

  1. A trigger that brings in the PDF: a form upload, a webhook, a file from storage. The PDF must be in an item field, data by default.
  2. Sign PDF: bind the signer slot to Signing: \<identity name>. Leave Level empty to use the identity's default.
  3. For B-T and above without a default TSA on the identity, add an RFC 3161 timestamp authority connection (its URL, and a policy OID if the TSA requires one) and bind it to the tsa slot.
  4. For a visible signature, set Appearance to text or image, and the Page and Position.
  5. Verify PDF signatures after it, to route the item by the verdict, for example to send only valid files onward.
  6. Store or send the signed file from the Output field.

Run it once with a test document. A re-run of the same step never signs twice: it returns the file the first run produced.

All parameters are in Signing from workflows.

10. Check the result

  • Organization → Signing → Log shows the signature: identity, project, level, outcome and the SHA-256 of the signed file. The Chain card confirms the log has not been altered.
  • Verify PDF signatures, or POST /api/v1/projects/{id}/signing/verify, reports each signature's validity, level and trust.
  • In a PDF reader the signature is valid, but the signer shows as unknown or not trusted unless the reader trusts your CA. For an internal CA, have the reader's administrator add your root certificate to its trusted certificates. Only a certificate from a CA on Adobe's or the EU's trust lists is trusted everywhere: see What "compliant" means.

Signing through the API

A project editor's personal access token needs the signing scope. POST /api/v1/projects/{id}/signing/sign takes the PDF and a JSON options part naming the identity, and answers the signed file. Send an Idempotency-Key header so a retry never signs twice. The PDF Signing routes are in the API reference.

Troubleshooting

What you see Why, and what to do
No Signing tab on the Organization page One of the gates is missing. Check, in order: the licence has pdf-signing (step 2); the organization's PDF signing switch is on (step 3); the signing service is deployed and running (step 1); you are an owner or admin of the organization
The tab says the signing service is not answering The service is down or unreachable from the orchestrator. The operator checks its pods and its database
Creating an identity fails at the key step The credential, a permission or the key reference is wrong. The message names the key holder's refusal; compare the principal's grant with Key holders and their grants
The identity is Unavailable The key holder stopped answering or refuses the credential (expired or rotated). Replace the credential from the identity's page, then Test
The identity stays Needs a certificate Install the CA's certificate (step 6)
The certificate install is refused The message names the failed check: a certificate for another key, not yet valid or expired, not allowed to sign, or a chain that does not link up
A signature is Refused in the log The identity's policy refused it; the log row and the step's error name the rule (a level, a reason, a size or rate limit, a required timestamp or visible signature)
B-T or above fails at the timestamp The TSA is unreachable, refused the request, or needs a policy OID: check the identity's default TSA or the step's tsa connection with its Test
B-LT or B-LTA fails The certificate's revocation status could not be fetched: its OCSP or CRL address is missing or unreachable. Sign at B-T, or ask your CA for a certificate that names one
The PDF reader says the signer is unknown Expected with a private CA: see step 10
An encrypted PDF is refused Encrypted PDFs are not signed in this version. Remove the encryption first

What this version does not do

  • USB hardware tokens (a YubiHSM 2 behind a signer agent) are not supported yet: keys must be in a cloud key holder.
  • Encrypted PDFs are refused.
  • Qualified signatures and seals are never claimed: Crios signs advanced signatures in the PAdES format. See What "compliant" means.
  • EU trusted lists signed with RSA-PSS cannot be checked yet, so the German list is skipped when a verification consults the EU lists.
  • Devanagari text in a visible signature is refused until text shaping exists.