Certificate Signing
Digitally sign PDFs with X.509 certificates and validate existing signatures against trusted certificate chains.
Signing PDFs
- Server Certificate
- Custom Certificate
- Organization Certificate
Easiest option - uses an auto-generated server certificate. No setup needed for users.
- Go to Certificate Sign tool
- Upload PDF
- Select "Sign with Stirling PDF"
- Configure signature appearance (optional)
- Sign and download
Configuration:
- Settings File
- Environment Variable
system:
serverCertificate:
enabled: true
organizationName: Stirling-PDF
validity: 365
regenerateOnStartup: false
SYSTEM_SERVERCERTIFICATE_ENABLED=true
SYSTEM_SERVERCERTIFICATE_ORGANIZATIONNAME="My Company"
SYSTEM_SERVERCERTIFICATE_VALIDITY=365
Use your own X.509 certificate (PKCS#12 .p12/.pfx or PEM format).
- Go to Certificate Sign tool
- Upload PDF
- Select "Upload Certificate"
- Upload certificate file and enter password
- Configure signature appearance
- Sign and download
# Generate a test certificate
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
# Convert to PKCS#12
openssl pkcs12 -export -out mycert.p12 -inkey key.pem -in cert.pem
Place your organization certificate in the configs directory so all users can sign without uploading their own:
configs/
└── keystore.p12
system:
serverCertificate:
enabled: false # Disable auto-generation
KEYSTORE_PASSWORD=your-password
Users will see a "Sign with [Organization Name]" option.
Signature Appearance
Visible: Appears as a box on the PDF page with configurable position, size, page, and displayed text (name, date, reason).
Invisible: Embedded in PDF metadata only, not visible on the page.
Validating Signatures
Verify that a PDF was signed by the claimed certificate, the certificate is trusted, the PDF hasn't been modified, and the certificate hasn't been revoked.
Trust Sources
| Source | Config Key | What It Trusts |
|---|---|---|
| Server certificates | serverAsAnchor | PDFs signed by your Stirling PDF instance |
| System trust store | useSystemTrust | OS-trusted CAs |
| Mozilla CA bundle | useMozillaBundle | Mozilla's curated CA list |
| Adobe AATL | useAATL | Adobe Approved Trust List |
| EU EUTL | useEUTL | EU Trusted List (eIDAS) |