The certificate for the wrong service
A local TLS endpoint presents a certificate that fails hostname verification. Investigate the certificate and restore a trusted connection.

The scenario
A service on loopback presents a certificate signed by the lab CA, but clients cannot validate the requested hostname. Restore certificate verification without disabling it.
Mission objectives
- Inspect the certificate and the verification error.
- Provide a certificate trusted by the lab CA for service.lab.invalid.
- Verify the live TLS connection with hostname checking enabled.
Lab README
Invalid TLS certificate
A local service presents a certificate signed by the lab CA, but hostname validation fails. Investigate the live certificate and restore validation without disabling certificate checks.
Before you begin
You need Linux, Bash, Python 3 and OpenSSL. The lab starts a TLS server on a dynamically assigned loopback port and creates temporary private key material in .lab-state; it does not modify host DNS. Use a disposable local environment.
Run and clean up
From this directory, run ./setup.sh and use the printed address to investigate. After your changes, run ./verify.sh and ./teardown.sh. Teardown stops the matching lab server and removes its generated local state.
Get the lab
Download and inspect the installer before running it. It checks the archive's SHA-256 digest and refuses to overwrite an existing lab directory.
curl -fsSLO https://devops.download/labs/netops-01-invalid-tls-certificate.sh less netops-01-invalid-tls-certificate.sh
bash netops-01-invalid-tls-certificate.sh
cd labs/netops-01-invalid-tls-certificate
./setup.shWhen you've made your changes, run ./verify.sh. Remove lab resources with ./teardown.sh.
Need a nudge?
Hint #1
The endpoint port and the lab CA are in .lab-state; inspect the certificate presented by the server.
Hint #2
Check the certificate's subject alternative names against the hostname the client expects.
Hint #3 · Deep Dive Runbook on opsbreakfix.com
Solved it?
Read the Official Root Cause Analysis & Certification Roadmap on opsbreakfix.com
Continue to opsbreakfix.com ↗