Foundations: web, servers, containersLesson 5 of 13
HTTPS and Certificates
An HTTPS connection starts by using a certificate to check "is this really that server?". Follow how a browser trusts a certificate, why internal networks often show warnings, and what happens when a certificate expires.
Issuer—
Domain match—
Validity—
ResultNot checked
RequestResponse / reportAppears in a later step
What you will learn
- A certificate proves "I own this domain"
- The browser checks the issuer against its trust store
- Why private certificates trigger warnings
- Server-to-server traffic also needs trust registration
- Why expiry becomes a "sudden" outage
What to do for each warning or error
| Symptom | Cause | What to do |
|---|---|---|
| "Not secure" warning (first internal visit) | Private certificate, so the issuer is not trusted | Register the company private CA in the PC trust store |
| Address mismatch warning | Certificate domain differs from the address used (e.g. direct IP access) | Connect using the domain on the certificate |
| Connections suddenly fail one day | Certificate expired | Renew the certificate. Automate renewal and set up expiry alerts |
| Node cannot pull images from Harbor | Node does not trust Harbor's private certificate | Register the private certificate in the node trust store |
Try it yourself
openssl s_client -connect <domain>:443 -servername <domain> -showcerts </dev/null # Certificate chain the server shows
openssl s_client -connect <domain>:443 -servername <domain> </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates # Domain, issuer, validity
curl -v -o /dev/null https://<domain>/ # Does the trust check pass?
kubectl get secret -A --field-selector type=kubernetes.io/tls # TLS certificates stored in the cluster
kubectl get certificate -A # Renewal status (if cert-manager is installed)
Check yourself
Further reading: Ingress TLS (Kubernetes docs) · Certificate management with kubeadm · cert-manager