TLS trust and hostname validation
What TLS protects
TLS establishes a cryptographically protected communication channel. In ordinary certificate-authenticated HTTPS, the client authenticates the server and the peers establish keys to protect later traffic. The certificate identifies a service and binds an identity to a public key; the handshake demonstrates possession of the corresponding private key. Client authentication by certificate is optional in many deployments.
Build a chain of trust
A service certificate can be issued by an intermediate certification authority (CA), which in turn chains toward a trusted anchor configured independently in the client. The client checks the certification path, signatures, validity intervals, applicable constraints and policies. A certificate sent by a server is not trustworthy merely because it was sent over a connection. Different clients may have different trust stores.
Check the requested hostname
Suppose the intended HTTPS URL is https://shop.example/ and the certificate lists only api.example as a DNS subject alternative name (SAN). Even if the chain is trusted and the dates are valid, the service name does not match. The client must use the intended reference identity, not simply accept any name in the presented certificate. For this lesson assume exact DNS-name matching; wildcard and IP identities have separate rules.
Understand the boundary
For certificate-authenticated TLS 1.3, the handshake authenticates the endpoint and establishes traffic keys; the record protection protects data between TLS endpoints. A reverse proxy can terminate TLS, creating a separate trust boundary for upstream traffic. A valid certificate does not guarantee safe content, correct application permissions or an honest merchant. TLS version details are separate from certificate identity rules.
Practice: certificate metadata
In a synthetic inventory, service A has a matching DNS SAN, valid dates and a trusted path. Service B has the same path and dates but only an unrelated SAN. Which passes these three checks? What further checks are outside the inventory? Do not treat this simplified exercise as a complete PKIX or TLS validator.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
TLS trust and hostname validation — knowledge check
Reason about fictional DNS and TLS service evidence.
What does a service certificate bind?
Where must trust in a certification anchor originate?
The trusted certificate SAN is api.example; intended host is shop.example. What is true?
A reverse proxy terminates TLS. What must be assessed separately?
What does a valid HTTPS certificate not prove?