TLS versions and the certificate inventory
A connection is only as modern as the versions you still accept, and only as named as the certificate you can find. Old protocols and untracked names are the same kind of drift.
Diagram
From a hostname to a protocol and a certificate you chose
Step 1 of 4
Name
A hostname should have an owner, a certificate, and an expiry.
# Inventory: hostname, issuer, expiry, owner, # and where the private key lives.
The server still accepts versions you meant to retire.
A certificate exists for a host nobody owns.
Something you shipped skips validation.
The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
4 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
Versions are a server setting
- What fails
- Clients offer a range. The server decides what it will accept. Leaving old versions on “for a partner” leaves them on for everyone who can reach that listener.
- Who is affected
- Everyone who connects, if a downgrade removes properties you thought you had.
- What you would notice
- A scan of your own hosts that shows a version you retired in a design doc.
- What you change
- Disable the old versions on every listener. Give the partner a date and a new endpoint, not an exception with no date.
The inventory is the product
- What fails
- Certificates expire, names move, and a load balancer’s certificate is not the origin’s. If you cannot list them, you will learn about expiry from a user.
- Who is affected
- The people who needed the service that morning, and anyone who trusted a name you no longer operate.
- What you would notice
- A spreadsheet that was last edited during the last outage, or no spreadsheet.
- What you change
- Generate the list from the account and the certificate authority. Give each row an owner. Page before expiry.
Private keys
- What fails
- The inventory includes where the private key lives and who can read it. A key in a repository is a certificate problem and a secret problem.
- Who is affected
- Anyone who can impersonate the name if the key is copied.
- What you would notice
- A key file deployed beside the application with world-readable permissions.
- What you change
- Keep keys in the platform’s secret store. Rotate if they were copied. Read the secret-scanning lesson.
Clients you write
- What fails
- A mobile app or a script that disables certificate validation will trust any name. That setting is a bug, not a debug convenience you leave in.
- Who is affected
- Users of that client.
- What you would notice
- A flag named insecure or rejectUnauthorized set the wrong way in production configuration.
- What you change
- Delete the flag. Pin or validate properly. If a lab tool needs an exception, keep it in the lab configuration.
What you accept is the protocol
TLS versions and cipher suites are a negotiation. If the server still speaks an old version, a client can be steered into it or a lazy client will stay there. The defensive setting is to enable the versions you have decided are current — TLS 1.2 and 1.3 in the usual deployment today — on every listener. The admin port, the metrics port, and the old load balancer count. A document that says they are off is not a configuration.
When a partner claims they need the old version, give them a date and help them move. An exception without a date becomes the permanent edge. Scan hosts you own and compare the result to the list. Do not scan hosts you do not own to make a point. The finding is a version on your own listener.
Every name has an owner
Certificates bind a name to a key for a period of time. The operational failure is a name nobody owns: a marketing site, a device admin page, a temporary environment that became production. Build the inventory from the certificate authority and from the account, not from memory. Columns: hostname, issuer, expiry, owner, where the private key is. Alert a month before expiry, and alert the backup owner.
Private keys are secrets. They do not live in the repository or in a world-readable file on the instance. If a scanner finds one, rotate it. The certificate inventory and the secret inventory are the same incident when that happens. The people affected are whoever trusted the name.
Do not ship a client that shrugs
Server inventory does not help a client you wrote that turns validation off to get past a lab certificate and then ships that way. Users of that client will trust a network that presents any certificate. Delete the bypass. Use a real name in production. In a lab, install a lab trust anchor deliberately, in the lab image, not a boolean in the source.
You would notice old versions in a scan of your fleet, a certificate row with no owner, a key in git, and a mobile build with validation disabled. The change is those four. Downgrade and certificate glossary pages are the shorter versions. This page is the inventory you can run.
What you change
Close old versions. Generate the inventory. Assign owners. Page on expiry and on new names you did not expect, because a new name is also how a forgotten property comes back. Turn validation on in your clients. Re-scan after the change, from inside your own change window.
If a platform’s defaults are already current, write down that you checked, and check the listeners the platform does not manage: appliances, build servers, the admin interface on the wireless controller. Those are where old versions go to live.
Check yourself
Recognition and the fix. Nothing here is a procedure.
A design doc says TLS 1.0 is disabled. A listener on the admin port still accepts it. What failed?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.