TLS certificate inventory: a 5-step method

You cannot renew a certificate you do not know about. Sources to combine, details to record and pitfalls to avoid for a complete, up-to-date TLS inventory.

Published · 3 min read · Also available in: Français

Almost every outage caused by an expired certificate starts the same way: nobody knew the certificate existed, or nobody knew they owned it. The inventory is the first step of any lifecycle management, and the only one that cannot be fully automated.

  1. 1. GatherSpreadsheet, authorities, cloud consoles.
  2. 2. DiscoverTLS scan and CT logs.
  3. 3. RecordWhat, when, where, who.
  4. 4. ClassifyRenewal mode and impact.
  5. 5. MaintainRescan every week.
The five steps of the method.

1. Start from what you already know

Gather the existing sources, however imperfect:

This first list is always incomplete. That is expected: it is your baseline for comparison.

2. Discover what nobody declared

Two techniques complement each other.

TLS scanning. Connect to every known domain name and address, on the usual ports (443, 8443, 465, 587, 993, 995, 636…), and read the certificate presented. It is the only method that sees what is actually served, including internal and self-signed certificates.

Certificate Transparency logs. Every public certificate is recorded there. Querying those logs for your domains surfaces certificates issued by a subsidiary, a contractor or a team that told nobody. We cover this in a dedicated article.

3. Record the right details

For each certificate, the inventory must answer four questions.

Question Details
What? Names covered (SANs), issuer, type (DV, OV, EV, private), algorithm, serial number
When? Issue date, expiry date
Where? Servers, load balancers, CDNs, appliances where it is installed
Who? Owning team, renewal mode (manual or automatic)

The last two rows are the hardest to fill in and the most useful on the day of an alert. One certificate is often installed in several places: renewing it in one of them is not enough.

4. Classify and prioritize

Not all certificates carry the same risk. Sort them along two axes:

This ranking gives you the order in which to automate, and the certificates to watch more closely in the meantime.

5. Keep the inventory alive

An inventory done once is wrong within three months. With certificates renewed four, then eight times a year, it will go stale even faster.

The most common blind spots

Where to start this week

Import what you know, scan your main domains and compare. The gap between the two lists is the best measure of your current risk, and the starting point of the 47-day preparation plan.