QR Code Guides

QR Code Certificate Verification: A Demo

Understand QR code certificate verification with a runnable local demo: valid, revoked and missing records, issuer checks, copied codes and privacy limits.

9 min readUpdated Nov 28, 2026Practical Guide
Certificate with a decorative QR motif beside a verification shield

QR code certificate verification is a shortcut to evidence, not evidence by itself. A printed pattern can open an issuer’s record, but it can also open a lookalike website or be copied from a genuine certificate onto altered paper. A reassuring green result is only useful when you understand what it checked.

This guide includes a runnable, fictional local demonstration and actual request results for valid, revoked, and missing records. CraftMyQR can encode a verification URL once an authorized issuer has established it. It does not supply the issuer registry, identify the holder, or digitally sign credentials for this example.

This article concerns course or award records, not TLS website certificates, certificate-authority chains, or software-signing troubleshooting.

What QR Code Certificate Verification Can Prove

A typical URL workflow contains several separate checks:

Success at one stage does not establish the others. An accessible page is not automatically an authentic institution. A valid course record does not establish that the person holding a photocopy earned it.

Cryptographically secured credentials involve additional mechanisms. The W3C Verifiable Credentials model describes verifiable authorship, integrity, and status considerations. Our plain database lookup does not implement that standard or verify a digital signature. It also cannot judge whether an issuer’s underlying educational claims are truthful.

  1. The code decodes to the intended verification address.
  2. The destination belongs to the expected issuer or an authorized service.
  3. That service finds the particular record and reports its current status.
  4. The record details match the presented document.
  5. Any required evidence connects the credential to the person presenting it.
Original certificate verification diagram separating a QR URL, issuer lookup and comparison with the document and holder

Start With a Small, Explicit Record

Our specimen stores two fictional awards. They contain no recipient names, emails, dates of birth, or personal identifiers. The issuer and workshop names are invented, and neither ID represents a real qualification.

A real issuer must choose appropriate public fields and an authorized method of matching a person to the record. This minimal no-personal-data schema intentionally cannot perform that matching. Do not solve the omission by publishing identity documents or sensitive student data in a QR payload.

Keep the verification ID independent of a person’s email or account login. Our short, fixed demonstration IDs are convenient for reproduction, not a production recommendation for identifier entropy, resistance to guessing, or privacy.

Demonstration IDProgramIssuedStored status
DEMO-V7P4K2Demo workshop A2026-10-01Valid
DEMO-R9M2T6Demo workshop B2026-10-02Revoked

Run the Fictional Demonstration Locally

With Node.js installed, save the following code as certificate-demo.mjs and run node certificate-demo.mjs. It uses the Node HTTP server API, needs no additional package, and binds only to 127.0.0.1 on a port selected by the operating system.

import { createServer } from 'node:http';

const records = new Map([
[‘DEMO-V7P4K2’, { program: ‘Demo workshop A’, issued: ‘2026-10-01’, status: ‘valid’ }],
[‘DEMO-R9M2T6’, { program: ‘Demo workshop B’, issued: ‘2026-10-02’, status: ‘revoked’ }]
]);

const server = createServer((req, res) => {
res.setHeader(‘Content-Type’, ‘application/json; charset=utf-8’);
res.setHeader(‘Cache-Control’, ‘no-store’);
const send = (code, body) => {
res.writeHead(code);
res.end(JSON.stringify({ demo: true, …body }));
};
if (req.method !== ‘GET’) {
res.setHeader(‘Allow’, ‘GET’);
return send(405, { status: ‘method_not_allowed’ });
}
const pathname = new URL(req.url, ‘http://127.0.0.1’).pathname;
if (!pathname.startsWith(‘/verify/’)) {
return send(404, { status: ‘route_not_found’ });
}
const id = pathname.slice(‘/verify/’.length);
if (!/^DEMO-[A-Z0-9]{6}$/.test(id)) {
return send(400, { status: ‘invalid_id_format’ });
}
const record = records.get(id);
if (!record) return send(404, { id, status: ‘not_found’ });
return send(200, {
issuer: ‘Fictional Example Academy’, id, …record,
checked_at: new Date().toISOString()
});
});

server.listen(0, ‘127.0.0.1’, () => {
console.log(`Local demo: http://127.0.0.1:${server.address().port}/verify/DEMO-V7P4K2`);
});

Open the exact address printed in your terminal on that same computer. Change only the final ID to try the other specimen or the missing ID DEMO-Z0Z0Z0. The displayed port changes between runs. Stop the server with Ctrl+C when finished.

This is not a public verification site. A phone’s 127.0.0.1 points to the phone, not your computer. Do not print this local address on real certificates or expose this toy service to the internet. It has no persistence, authorized administration, TLS setup, rate limiting, or cryptographic credential verification.

Separate HTTP Success From Credential Status

On October 20, 2026, we executed six HTTP requests against the loopback server using Node.js v22.15.0. Each response carried Cache-Control: no-store. We then shut down the server and confirmed that another request failed rather than returning a credential result.

The HTTP semantics specification describes transport response meanings. Returning 200 for a found-but-revoked record is our application choice, not a mandatory credential API convention. The request succeeded; the credential did not become acceptable merely because HTTP succeeded.

For the final check, our test harness changed records.get('DEMO-V7P4K2').status to revoked before requesting that same path again. A reader can reproduce the state change by editing its initial status and restarting this disposable example. Real revocation needs authorized changes and a durable audit trail, not source-file editing.

Outage, not found, and revoked are different outcomes. After shutdown, the request failed with a fetch error; it did not report “not found.” Production software must not turn a timeout, malformed response, or unexpected error page into approval. Expiry and suspension would need additional explicit rules; this two-state specimen does not implement them.

Request or changeHTTP resultJSON statusInterpretation
GET valid specimen200validRecord exists and currently says valid
GET revoked specimen200revokedRecord exists but the award is revoked
GET unknown well-formed ID404not_foundNo record in this demonstration
GET malformed ID BAD400invalid_id_formatInput does not meet this specimen’s format
POST to a verification path405method_not_allowedThis endpoint offers lookup, not writes
Change valid record to revoked; GET same URL200revokedSame route reflects changed stored status

The Copied-genuine-code Counterexample

Imagine a genuine record for workshop A and a paper certificate whose printed workshop title has been changed to workshop B. Someone copies A’s QR image onto that paper. The lookup still opens A’s record and can still return valid.

Nothing about the QR pattern forces the surrounding paper to match. Compare the returned ID, award details, dates, and authorized recipient evidence with the presented document. A mismatch requires investigation even when the registry record itself is valid.

Our minimal demo goes further: it omits a holder field deliberately. It cannot tell you whose achievement the record describes. That boundary prevents a common mistake—treating a working URL as proof of a person’s identity. A real verification service needs a suitable, privacy-conscious matching process appropriate to its purpose.

Establish the Issuer Before Trusting the Result

Check the institution through an independently known route, such as its official website and documented verification service. Do not rely solely on the URL printed on the certificate, the page’s logo, or an issuer name returned by its own JSON.

A production issuer can host the page on its controlled domain or clearly identify an authorized provider. Preserve organizational access, domain renewal, and successor ownership. A domain move needs a deliberate transition so old printed URLs do not become abandoned entry points.

HTTPS protects the connection to the selected site; it does not by itself establish that the selected site is the institution you intended. If a QR uses an intermediate redirect, inspect the final authorized destination and document who can change that redirect.

The CraftMyQR dynamic workflow can manage URL destinations. That flexibility introduces a link-management responsibility; it does not endorse an issuer or authenticate a certificate record.

Decide What Is Public and What Needs Authorization

Use the least public information necessary for the verification task. A printed lookup link can be photographed, forwarded, logged, or entered manually. Treat it as shareable, not as a secret password.

An issuer may need public status with limited metadata, an authenticated detailed check, or holder-controlled evidence. Define that policy before issuing codes. Test unknown IDs and denial paths as carefully as valid records, and decide how to avoid unnecessary record enumeration or exposure.

Our response sets no-store as a local cache instruction, but that does not revoke screenshots, browser history, or previously exported documents. Production retention, access controls, request logging, and abuse protections require separate design. A scan analytics event is not evidence that an authorized person completed verification.

Add the QR After the Service Works

First confirm the exact per-record URL, issuer authority, lookup statuses, and recovery process. Then generate its code. For multiple records, the bulk generator can work from reviewed named URL pairs; retain the ID-to-URL-to-artwork mapping.

Print a readable verification address and record reference as an alternative to scanning. Test the final PDF and physical proof, but keep those production tests distinct from the software requests above. We did not perform a phone or printed-certificate scan in this demonstration.

The current example requires no new public service and creates no real credentials. A production rollout would additionally need a maintained registry, authorized issuance and revocation, appropriate security review, and a support path for disputed records.

Conclusion: Verify the Source and the Match

Useful QR code certificate verification separates the route, issuer, record status, document comparison, and holder evidence. Our local test makes valid, revoked, missing, malformed, and unavailable outcomes observable without pretending to build a credential authority.

Use CraftMyQR for the URL artwork once the issuer’s service is established. Starting from a reviewed record URL is more dependable than attaching an unexplained image, but the issuer—not the QR generator—remains responsible for the verification claim.

Frequently Asked Questions

Does a QR code make a certificate impossible to forge?

No. Someone can copy a genuine code onto altered paper or use a lookalike destination. Check the issuer independently, inspect the returned record, compare it with the document, and use the appropriate holder evidence. The pattern alone does not prevent copying.

Why does the revoked specimen return HTTP 200?

The server successfully found and returned that record, so this demonstration uses 200 while its JSON says revoked. Credential status and HTTP status answer different questions. Other services may choose different conventions; clients must follow the service’s documented response contract.

Is a missing record the same as a revoked certificate?

No. A missing lookup means this service did not return a matching record. Revocation means an existing record has a particular status. A mistyped ID, wrong issuer, service failure, or migration problem needs investigation rather than an automatic conclusion about the credential.

Can I use the local demonstration address on real certificates?

No. The server binds to your computer’s loopback interface and is intentionally temporary. On another device, that loopback address refers to that device itself. Real certificates need a maintained issuer-authorized destination and appropriate security, privacy, administration, and continuity arrangements.

Does the example verify digital signatures?

No. It looks up fictional in-memory records and returns stored status. It has no cryptographic proof, trusted key infrastructure, or standards-conformant credential verification. Digitally secured credentials require additional mechanisms and checks beyond opening a URL or receiving a valid string.

Can I put the recipient’s personal information in the QR?

Anything encoded directly can be read by someone with the image. Avoid sensitive identifiers, passwords, or private student data. Decide which details should be public, which require authorization, and how the issuer will match the credential to its holder without unnecessary disclosure.

What if the verification website is unavailable?

Report that verification could not be completed and follow the issuer’s approved alternative route. Do not interpret a timeout as valid, revoked, or not found. Keep the attempted issuer and record reference so a reviewer can investigate through a trusted channel.

Does CraftMyQR issue or validate the certificates?

Not in this workflow. CraftMyQR creates QR artwork for supplied URLs and offers relevant URL-management tools. The issuer or authorized credential service must supply the records, authority, status checks, holder matching, and any cryptographic verification or issuance process.

Paste a URL and create your QR code

Need to create a QR code now?

Create and preview your QR code with our free generator. For long-term materials like menus, packaging and posters, consider upgrading to dynamic QR codes.

Dynamic QR codes

Need to update links later or review scan data?

Dynamic QR codes let you change the destination after printing and review scan activity over time.

Create a QR code