QZ Tray invalid signature, or skip signing
QZ Tray requires a valid signature to suppress dialogs. If you do not want to sign browser requests, print from the server instead.
For Developers debugging QZ Tray signatures
Overview
QZ Tray's FAQ says silent printing without warning dialogs requires signing with the certificate from their Premium Support purchase, or your own root. An invalid signature means that signature step failed: wrong key, stale certificate, or a message that does not match.
Fixing the signature is a QZ configuration task on their docs. PrintBase does not validate QZ signatures and cannot repair them. The alternative is to stop asking the browser to sign and POST the document from your server.
Their homepage listed Premium Support, including the certificate, at $749 USD when this page was written. Check qz.io before repeating the price.
Integration steps
- 01
If you stay on QZ
Follow QZ's signing guide. A mismatch between the payload and the signature is their error text, not ours.
- 02
If you leave QZ for server jobs
Render the PDF or raw bytes on the server. Use POST /v1/print-jobs with Authorization: Bearer and the printer_code from GET /v1/printers.
- 03
POST /v1/print-jobs
No signature header. Authorization is a Bearer API key. Use POST /v1/print-jobs with Authorization: Bearer and the printer_code from GET /v1/printers.
- 04
Keep QZ for kiosks that still need it
Do not send the same label through both. Use POST /v1/print-jobs with Authorization: Bearer and the printer_code from GET /v1/printers.
Node.js
// Server print with no QZ signature
const res = await fetch('https://api.printbase.cloud/v1/print-jobs', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PRINTBASE_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': idempotencyKey,
},
body: JSON.stringify({
printer_code: Number(process.env.PRINTER_CODE),
content_type: 'pdf',
content: pdf.toString('base64'),
copies: 1,
}),
});
if (!res.ok) throw new Error(`PrintBase ${res.status}: ${await res.text()}`);
const job = await res.json();
// { id: "job_abc", status: "queued" }
Details for this setup
Different trust models
QZ trusts a signature in the page. PrintBase trusts the API key on the server. Moving the key into the page is not a migration.
No shared error codes
Invalid signature is not AGENT_OFFLINE or INVALID_CONTENT. The agent prints only what you send; it does not fetch the document from the platform for you.
Questions
Can PrintBase verify a QZ signature?
No. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.
Do I uninstall QZ?
Only on stations that no longer use it. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.
Will the $749 certificate work with PrintBase?
No. It is for QZ. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.
The tray works but the cloud printer does not.
Those are separate installs. The agent has to be running for the API path.
Free plan: 100 jobs a month on one computer, no card.