n8n PDF digital signature service workflow
This n8n workflow is a small web service that generates certificates and digitally signs PDF files. It is for developers who want a self hosted signing endpoint inside n8n instead of a paid e-signature tool for simple internal documents and test files.
What it does
A webhook receives requests and a switch routes them by operation: generate keys, upload a certificate, upload a PDF, sign a PDF or download the document. Code nodes validate the parameters and do the cryptographic work, files are read from and written to disk, and responses are formatted before returning.
How to use it
Call the webhook with the operation and its parameters; the validation nodes show what each call expects.
Requirements and limits
Uses local file storage, so it fits a self hosted n8n instance.
More in Other and the n8n workflow library.
Full text
Front matter
name: Basic PDF Digital Sign Service
description: Triggered by a webhook. Connects Code, Condition, Convert To File, Read Write File, Respond To Webhook, Switch, Webhook. # Cryptographic Operations ## Generate Certificate and Sign PDF # Document Management ## Download document # Document Management ## Upload Certificate and Upload PDF # Request Processing and Method Routing # Response Checking and Formatting
category: Automation
kind: Workflow
software: Code|Condition|Convert To File|Read Write File|Respond To Webhook|Switch|WebhookBasic PDF Digital Sign Service
Triggered by a webhook. Connects Code, Condition, Convert To File, Read Write File, Respond To Webhook, Switch, Webhook. # Cryptographic Operations
Generate Certificate and Sign PDF # Document Management
Download document
# Document Management
Upload Certificate and Upload PDF
# Request Processing and Method Routing # Response Checking and Formatting
Steps
- Validate Key Gen Params (code)
- Validate PDF Sign Params (code)
- Validate PDF Upload (code)
- Validate Key Upload (code)
- Generate Keys (code)
- Sign PDF (code)
- Prepare Success Response (set)
- Switch Operation (switch)
- Switch Upload Type (switch)
- Prepare input params (set)
- set file path (set)
- Convert PDF to File (convertToFile)
- Write PDF File to Disk (readWriteFile)
- Read PDF File from Disk (readWriteFile)
- Convert PFX to File (convertToFile)
- Write PFX File to Disk (readWriteFile)
- Read PFX File from Disk (readWriteFile)
- Check PDF file is OK (set)
- Check PFX file is OK (set)
- check success (if)
- set downlowd file info (set)
- Read download file from Disk (readWriteFile)
- API POST Endpoint (webhook)
- API GET Endpoint (webhook)
- POST Success Response (respondToWebhook)
- POST Error Response (respondToWebhook)
- GET Respond to Webhook (respondToWebhook)
- Sticky Note (stickyNote)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Sticky Note4 (stickyNote)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source and license
Source: https://github.com/Zie619/n8n-workflows/blob/main/Webhook/1722_Webhook_Code_Automation_Webhook.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- Webhook Workflow: Respond To Webhook and Webhook (n8n workflow collection) (Respondtowebhook) (410)
- Html2Pdf Workflow: Code, Respond To Webhook and Webhook
- Production Workflow: Airtable, Condition and Crypto (n8n workflow collection) (Webhook)
- Slack Workflow: Slack, n8n and Code
- Webhook Workflow: Code, Respond To Webhook and Switch
- Production Workflow: Airtable, Condition and Crypto (n8n workflow collection) (76)
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.