Custom Dashboards
Besides the built-in dashboards, an administrator can add dashboards for everyone. A dashboard is a small JSON file listing its widgets: a number, a bar chart, a ring, a table, a trend line or a note, each counting certificates in its own way.
- An added dashboard is saved in the certdog database, so it is kept through upgrades and included in database backups.
- It holds no code, only what to count and how to show it.
- Every widget only counts the certificates the person looking may see, and follows the All / My teams / Mine choice at the top of the page. A dashboard cannot show anyone more than they could see in the certificate list.

To find your way around the built-in dashboards, see Dashboards.
Adding a dashboard
- Go to Dashboards and click Manage dashboards.
- Under Add a dashboard, choose the
.jsonfile. certdog checks it and lists any problems, saying which widget is wrong and why. - Click Add dashboard. Everyone can now choose it from the Dashboard list, under Added dashboards.

Uploading a dashboard with the same id as one already added replaces it. Download saves an added dashboard as a file, to change it or to copy it to another certdog server. Download an example gives a dashboard that uses every kind of widget, as a starting point.
Who can add dashboards
Adding, replacing and removing dashboards needs the permissions PUT /admin/dashboards/definitions/{id} and DELETE /admin/dashboards/definitions/{id}. The Global Administrator and Infrastructure Administrator roles have them. Anyone who can see the dashboards (GET /dashboard/aggregate) can view an added dashboard.
The default dashboard
Each person can make any dashboard their own default with Set as default. For those who have not, an administrator can choose the dashboard that opens for everyone, under Default for everyone in Manage dashboards. This needs the PUT /admin/dashboards/shared permission. With neither, the certificate overview opens.
Creating a dashboard
The quickest way to start is from the example:
- In Manage dashboards, click Download an example. This saves
example-dashboard.json, which uses every kind of widget. - Open it in a text editor (one that checks JSON, such as Visual Studio Code, helps). Change the
idandname, so it is added beside the example rather than replacing it. - Remove the widgets you don’t need, change the others, and add more from the examples below.
-
Upload it in Manage dashboards. If certdog finds a problem it lists each one, with the widget’s number and title, and nothing is added:

- Fix the file and choose it again. When it is accepted, click Add dashboard, then choose it from the Dashboard list to see it.
Changing a dashboard
- In Manage dashboards, click Download beside the dashboard to get the file as it is now.
- Change it, keeping the same
id. - Upload it again. As the
idis the same, it replaces the dashboard: everyone sees the new version the next time they open it, and anyone who made it their default keeps it as their default.
Changing the id adds a second dashboard instead. Remove the old one with Remove….
To copy dashboards to another certdog server (for example from test to production), download them from one and upload them to the other. As they are plain text files, you can keep them in source control along with your other configuration.
Writing a dashboard
{
"schema": 1,
"id": "expiry-by-team",
"name": "Expiry by team",
"description": "What expires soon, and which teams it belongs to",
"widgets": [
{ "type": "kpi", "title": "Active certificates" },
{ "type": "kpi", "title": "Expiring in 30 days", "query": { "params": { "expiresTo": "+30d" } }, "colour": "warning" },
{ "type": "bar", "title": "Expiring in 90 days, by team", "query": { "groupBy": ["team"], "params": { "expiresTo": "+90d" } } },
{ "type": "donut", "title": "Issuers", "query": { "groupBy": ["issuer"] }, "limit": 6 },
{ "type": "trend", "title": "Active certificates by key algorithm", "query": { "months": 24, "groupBy": ["keyAlgorithm"] } }
]
}
| Field | ||
|---|---|---|
schema | Required | Always 1 |
name | Required | Shown in the list of dashboards. Up to 100 characters |
id | Optional | 1 to 64 letters, numbers, dots, dashes or underscores. Made from the name if left out |
description | Optional | Shown beside the list. Up to 500 characters |
widgets | Required | 1 to 40 widgets, shown in this order |
Widgets
type | Shows | query.groupBy |
|---|---|---|
kpi | A single number: the certificates counted, or with where, those with certain values | 0 to 2 dimensions |
bar | A bar for each value of the first dimension. A second dimension splits each bar | 1 or 2 |
donut | A ring split by one dimension, with a list of the values | 1 |
table | A row for each value (or pair of values), with its count and share | 1 or 2 |
trend | Active certificates at the start of each month, one line in total or one per value | 0 or 1 |
text | A note or heading, from text (up to 2,000 characters) | None |
Every widget can have:
| Field | |
|---|---|
title | The widget’s heading. Required except for kpi and text |
sub | A line under the heading |
size | small (a third of the width), half or full. Numbers (kpi) sit side by side in a row of their own; trends are full and the rest half unless set |
query | What to count: groupBy and params (below), and for a trend, months (2 to 60, 12 if left out) |
limit | How many values to show (1 to 50). The rest are put together as Other; dates are cut instead |
labels | Names for values, e.g. { "true": "TLS", "false": "Other" } |
link | false stops values linking to the certificate list |
A kpi can also have:
| Field | |
|---|---|
where | Count only rows with these values, e.g. { "hasOwner": "false" }, or a list: { "team": ["team-id-1", "team-id-2"] }. Each dimension used must be in query.groupBy |
show | count (the default), or percent for the share of all the certificates counted |
colour | accent, good, warning, critical, pqc, rsa or ecc |
A table can also have headings, naming its columns, e.g. { "team": "Owning team" }.
Dimensions
| Dimension | |
|---|---|
keyAlgorithm | Key algorithm: RSA, ECC, ML-DSA… |
keySize | Key size, curve or ML-DSA level |
hash | Signature hash |
quantumSafe | Whether the key is post-quantum: true or false |
issuer | The issuing CA |
team | The team |
expiryYear, expiryMonth, expiryDay | When it expires. Keep expiryDay to a short window with expiresFrom and expiresTo |
issuedYear, issuedMonth | When it was issued |
tls | Whether it is a TLS server certificate |
lifetime | Its lifetime: 47, 100, 200, 398 days or longer |
wildcard, selfSigned, hasOwner | true or false |
renewal | How it is renewed: acme, est, scep, autoRenew, synced, imported or certdog |
commonName | Its common name |
outcome | What happened to it: renewed, expired, revoked… (not for trends) |
renewedToIssuer | The CA its renewal came from (not for trends) |
Values of issuer, team, keyAlgorithm, keySize, quantumSafe and the expiry and issue dates (expiryYear, expiryMonth, expiryDay, issuedYear, issuedMonth) link to the certificate list, showing exactly the certificates counted: the list also applies the widget’s own query parameters, and every value of a table row. A value does not link where the list cannot show just those certificates: other dimensions (such as tls or commonName), the Other group, and widgets counting expired certificates or using activeAt.
Query parameters
By default only active certificates are counted. query.params can change what is counted:
| Parameter | |
|---|---|
status | active (the default), all, expired or revoked |
activeAt | Count the certificates active on this date |
issuedFrom, issuedTo | Issued on or after, or before, a date |
expiresFrom, expiresTo | Expiring on or after, or before, a date |
issuer | Only these issuers: a list of issuer DNs |
ca | true for CA certificates only, false to leave them out |
quantumSafe | true or false |
Dates are written 2027-01-31, or relative to the day the dashboard is viewed: today, +30d, -2w, -6m, +1y. A trend can only use issuer, ca and quantumSafe.
The scope (All / My teams / Mine) is never a parameter: it is always the one chosen on the page.
Examples
Each of these can be saved as a .json file and uploaded as it is.
Expiry for each team
What each team has expiring soon, and expiring certificates nobody owns.
{
"schema": 1,
"id": "team-expiry",
"name": "Team expiry",
"description": "What each team has expiring in the next 90 days",
"widgets": [
{ "type": "kpi", "title": "Expiring in 7 days", "query": { "params": { "expiresTo": "+7d" } }, "colour": "critical" },
{ "type": "kpi", "title": "Expiring in 30 days", "query": { "params": { "expiresTo": "+30d" } }, "colour": "warning" },
{ "type": "kpi", "title": "Expiring in 90 days", "query": { "params": { "expiresTo": "+90d" } } },
{ "type": "kpi", "title": "Expiring with no owner", "sub": "In the next 90 days",
"query": { "groupBy": ["hasOwner"], "params": { "expiresTo": "+90d" } }, "where": { "hasOwner": "false" }, "colour": "critical" },
{ "type": "bar", "title": "Expiring in 30 days, by team", "query": { "groupBy": ["team"], "params": { "expiresTo": "+30d" } }, "limit": 12 },
{ "type": "table", "title": "Expiring each day", "sub": "The next 90 days, by team",
"query": { "groupBy": ["expiryDay", "team"], "params": { "expiresTo": "+90d" } },
"headings": { "expiryDay": "Expires", "team": "Team" }, "limit": 50 }
]
}
Renewal automation
How certificates are renewed, as a share of all of them, and for each team and CA. A where with a list counts every value in it.
{
"schema": 1,
"id": "automation",
"name": "Renewal automation",
"description": "How certificates are renewed, by team and by CA",
"widgets": [
{ "type": "kpi", "title": "Renewed by ACME", "query": { "groupBy": ["renewal"] }, "where": { "renewal": "acme" }, "show": "percent", "colour": "good" },
{ "type": "kpi", "title": "Renewed automatically", "sub": "ACME, EST, SCEP or auto-renew",
"query": { "groupBy": ["renewal"] }, "where": { "renewal": ["acme", "est", "scep", "autoRenew"] }, "show": "percent", "colour": "good" },
{ "type": "kpi", "title": "Imported by hand", "query": { "groupBy": ["renewal"] }, "where": { "renewal": "imported" }, "colour": "warning" },
{ "type": "donut", "title": "How certificates are renewed", "query": { "groupBy": ["renewal"] },
"labels": { "acme": "ACME", "est": "EST", "scep": "SCEP", "autoRenew": "Auto-renew", "synced": "Synced from a CA", "imported": "Imported", "certdog": "Through certdog" } },
{ "type": "bar", "title": "By team", "query": { "groupBy": ["team", "renewal"] }, "limit": 10,
"labels": { "acme": "ACME", "est": "EST", "scep": "SCEP", "autoRenew": "Auto-renew", "synced": "Synced", "imported": "Imported", "certdog": "certdog" } },
{ "type": "table", "title": "By CA", "size": "full", "query": { "groupBy": ["issuer", "renewal"] }, "headings": { "issuer": "CA", "renewal": "Renewed by" } }
]
}
Post-quantum progress
How many certificates use a post-quantum key, for each CA and team, and how that has changed over two years. The colour values pqc, rsa and ecc match the PQC readiness dashboard.
{
"schema": 1,
"id": "pqc-progress",
"name": "Post-quantum progress",
"description": "How many certificates use a post-quantum key, by CA and team",
"widgets": [
{ "type": "kpi", "title": "Post-quantum", "query": { "groupBy": ["quantumSafe"] }, "where": { "quantumSafe": "true" }, "show": "percent", "colour": "pqc" },
{ "type": "kpi", "title": "Still RSA", "query": { "groupBy": ["keyAlgorithm"] }, "where": { "keyAlgorithm": "RSA" }, "colour": "rsa" },
{ "type": "kpi", "title": "Still ECC", "query": { "groupBy": ["keyAlgorithm"] }, "where": { "keyAlgorithm": "ECC" }, "colour": "ecc" },
{ "type": "kpi", "title": "Valid beyond 2030", "sub": "And not post-quantum",
"query": { "params": { "expiresFrom": "2031-01-01", "quantumSafe": false } }, "colour": "critical" },
{ "type": "bar", "title": "By CA", "query": { "groupBy": ["issuer", "quantumSafe"] }, "labels": { "true": "Post-quantum", "false": "Classical" } },
{ "type": "bar", "title": "By team", "query": { "groupBy": ["team", "quantumSafe"] }, "labels": { "true": "Post-quantum", "false": "Classical" } },
{ "type": "trend", "title": "Post-quantum certificates", "sub": "Active at the start of each month",
"query": { "months": 24, "groupBy": ["quantumSafe"] }, "labels": { "true": "Post-quantum", "false": "Classical" } }
]
}
Revocations
Certificates issued in the last year that have since been revoked. status counts revoked certificates instead of active ones.
{
"schema": 1,
"id": "revoked",
"name": "Revocations",
"description": "Certificates revoked in the last year",
"widgets": [
{ "type": "kpi", "title": "Revoked", "sub": "Issued in the last year", "query": { "params": { "status": "revoked", "issuedFrom": "-1y" } }, "colour": "critical" },
{ "type": "bar", "title": "By month issued", "query": { "groupBy": ["issuedMonth"], "params": { "status": "revoked", "issuedFrom": "-1y" } } },
{ "type": "donut", "title": "By CA", "query": { "groupBy": ["issuer"], "params": { "status": "revoked", "issuedFrom": "-1y" } }, "limit": 6 },
{ "type": "table", "title": "By team", "query": { "groupBy": ["team"], "params": { "status": "revoked", "issuedFrom": "-1y" } } }
]
}
Certificate hygiene
Certificates that are harder to look after, with a note at the top. labels gives the values friendlier names, and "link": false stops the names in the table linking to the certificate list.
{
"schema": 1,
"id": "hygiene",
"name": "Certificate hygiene",
"description": "Wildcards, self-signed certificates, long lives and certificates without an owner",
"widgets": [
{ "type": "text", "title": "Certificate hygiene", "size": "full",
"text": "Certificates that are harder to look after. Speak to the Security team before issuing a new wildcard certificate." },
{ "type": "kpi", "title": "Wildcards", "query": { "groupBy": ["wildcard"] }, "where": { "wildcard": "true" }, "colour": "warning" },
{ "type": "kpi", "title": "Self-signed", "query": { "groupBy": ["selfSigned"] }, "where": { "selfSigned": "true" }, "colour": "warning" },
{ "type": "kpi", "title": "No owner", "query": { "groupBy": ["hasOwner"] }, "where": { "hasOwner": "false" }, "colour": "critical" },
{ "type": "kpi", "title": "Longer than 398 days", "query": { "groupBy": ["lifetime"] }, "where": { "lifetime": "longer" }, "show": "percent" },
{ "type": "bar", "title": "Wildcards by team", "query": { "groupBy": ["team", "wildcard"] }, "labels": { "true": "Wildcard", "false": "Other" } },
{ "type": "bar", "title": "Lifetime by CA", "query": { "groupBy": ["issuer", "lifetime"] },
"labels": { "47": "Up to 47 days", "100": "Up to 100 days", "200": "Up to 200 days", "398": "Up to 398 days", "longer": "Longer" } },
{ "type": "table", "title": "Names on most certificates", "sub": "The same name on many certificates may mean keys are copied between servers",
"query": { "groupBy": ["commonName"] }, "limit": 15, "link": false }
]
}
Hints and tips
- Start small. Upload a dashboard with two or three widgets, check it shows what you expect, then add more. Compare a number with the certificate list (click it) to be sure it counts what you meant.
- Check it with each scope. Use My teams and Mine as well as All certificates. Someone with fewer permissions sees smaller numbers, never more.
- Numbers first. A row of three or four
kpiwidgets at the top gives the answer at a glance; put charts and tables below. - Use relative dates (
+30d,-1y) rather than fixed ones, so the dashboard stays current. Use a fixed date for a deadline, e.g."expiresFrom": "2031-01-01". - Keep long lists short with
limit. A bar or ring with more than 8 to 10 values is hard to read: the rest are shown together as Other. - A
kpiwithwhereneeds the dimension in itsquery.groupBy, e.g."query": { "groupBy": ["wildcard"] }, "where": { "wildcard": "true" }. Add"show": "percent"to show it as a share. - Explain the dashboard with a
textwidget: who it is for, what to do about what it shows, or who to contact. - Name the values with
labelswhere they would otherwise show astrueandfalse, or as codes such asautoRenew. - Split bars by a second dimension with only a few values (
tls,quantumSafe,wildcard,renewal); splitting byteamorissuermakes too many colours. - Widgets asking the same question share a request, so a
barand atablewith the samequerycost no more than one.
Common problems
| certdog says | What to do |
|---|---|
"schema" must be 1 | Add "schema": 1 at the top level |
"query.groupBy" must be a list of dimensions: … | Check the spelling: dimension names are case-sensitive, e.g. keyAlgorithm, not keyalgorithm |
"query.groupBy" must have 1 dimension | A donut takes one dimension; use a bar or table for two |
"where" uses …, which must also be in "query.groupBy" | Add the dimension the where uses to the widget’s groupBy |
"…" must be a date | Write dates as 2027-01-31, today, or +30d, -2w, -6m, +1y |
"scope" is not a query parameter | Remove it: the scope is always the one chosen on the page |
a trend cannot be split by … / a trend can only use the parameters … | Trends count active certificates each month, so cannot use expiry, issue dates, status, outcome or renewedToIssuer |
needs a "title" | Every widget except kpi and text needs a title |
The file is not valid JSON | Look for a missing comma or quote, or a comma after the last item in a list |
Performance
Widgets asking exactly the same question share one request. With very many certificates, grouping by commonName or expiryDay over a long period returns many rows: keep those to a short window, or use a limit.