Introduction
Two endpoints can agree on encryption keys and still need to establish whom those keys belong to. A certificate-authenticated TLS 1.3 handshake combines key establishment, service identity and verification of the handshake transcript.
Agree on traffic keys
In a usual full TLS 1.3 web handshake, the client offers supported parameters and a key share in ClientHello. The server selects parameters and returns its key share in ServerHello. Ephemeral key exchange lets both endpoints derive shared secrets without sending the resulting traffic keys.
TLS derives separate keys for different directions and phases of a connection. Handshake messages after ServerHello are encrypted in the usual TLS 1.3 exchange. The initial ClientHello can expose information to observers unless additional mechanisms protect it.
Verify the service identity
A certificate carries a public key and names. For an HTTPS connection, the client checks that the requested service name matches an appropriate subject alternative name. It also validates the certificate path to a trusted anchor, the validity interval and applicable certificate constraints.
The server’s CertificateVerify signature demonstrates control of the corresponding private key and binds that proof to the handshake. Finished verifies the transcript under a derived key. These checks serve different purposes. A valid signature alone cannot establish that a key is trusted for a particular host name.
Define the protection boundary
TLS record protection provides confidentiality and integrity for application bytes between the TLS endpoints. The endpoint terminating a connection can read those bytes. At a load balancer, a separately secured connection to the upstream application has its own keys and identity policy.
An ordinary public website commonly authenticates only the server at the TLS layer. If a service requires client certificates, configure client trust anchors and an application authorization policy. Possession of an accepted certificate does not by itself define which records a user may access.
Diagram
- ClientHello
- ServerHello and key agreement
- Server certificate and verification
- Finished messages
- Protected application records
Worked examples
Validate a certificate for reports.example
- The client opens https://reports.example/. Its reference name is reports.example, even if DNS sends it to an address shared with other sites.
- The server presents a leaf certificate listing reports.example and the intermediate certificates needed for the trust path. The client checks the name, clock, permitted usages and path to a trusted anchor.
- The client verifies the transcript signature and Finished. Only after the connection satisfies its authentication policy should it treat the service as the intended peer.
DNS Record Reference: Read a two-stage mail-routing entry
- Read “example.org. 3600 IN MX 10 mail.example.org.” as an MX record for example.org. Its preference is 10, its target is mail.example.org., and 3600 seconds equals one hour.
- Read “mail.example.org. 300 IN A 192.0.2.25” as a separate IPv4 address record for the target. Its TTL is five minutes.
- If a second MX has preference 20, senders normally try the lower preference first. The target name and its address can be updated and cached on different schedules.
Reference table
| Item | Question it helps answer |
|---|---|
| Subject alternative name | Is this credential valid for the service name? |
| Trust path and validity | Is the credential acceptable under client policy at this time? |
| CertificateVerify | Does the peer control the private key for the presented certificate? |
| Finished | Do the negotiated secrets and transcript agree? |
| Application records | Can the endpoints exchange protected data? |
Configuration example
- For a TLS terminator serving reports.example, pair the leaf certificate with its matching private key and provide the appropriate intermediate chain. Keep the private key accessible only to the component that needs it.
- Give the backend connection its own verified identity if traffic crosses another trust boundary. Document when certificates renew and how the terminator loads the replacement.
Common mistakes
- Adding a DNS alias and expecting an existing certificate with an unrelated name to match the new public name.
- Diagnosing an expired certificate as a cipher mismatch. The validity interval, trust chain, name match and handshake negotiation are separate checks.
Frequently asked questions
Does a public website receive my private key?
No. Even in certificate-based client authentication, the client proves control by signing handshake data. Its private key stays with the client.
Can TLS hide the size and timing of a transfer?
Observers can generally still see connection endpoints and timing, and infer information from encrypted traffic sizes. Payload encryption does not eliminate all traffic metadata.
What does certificate validation check?
A client checks whether the certificate chains to a trusted issuer, is valid for the requested identity, and meets other validation rules such as time and policy constraints.
Does encryption alone prove which server I reached?
No. Encryption protects data in transit, but identity authentication depends on validating the certificate and the name expected by the client.
What is a TLS handshake for?
The peers negotiate protocol parameters, authenticate as required, and derive keys for protecting the subsequent application data. The exact messages depend on the TLS version and selected options.
Can a certificate be valid while the website is malicious?
Yes. A valid certificate proves control of a name under the validation process, not that the operator is safe or that the page content is benign.
What is Server Name Indication?
SNI is a TLS ClientHello extension that lets a client indicate the hostname it wants, helping a server select a certificate and configuration when it hosts multiple names.
Can TLS authenticate a client as well as a server?
Yes. Mutual TLS can require a client certificate in addition to the server certificate, but both parties must configure identity issuance and validation correctly.
What happens when a certificate hostname does not match?
A correctly validating client should reject the connection or show a security error because the certificate does not authenticate the requested name.
Does resuming a TLS session mean the new connection is unencrypted?
No. Session resumption reuses negotiated security context to reduce handshake work while still deriving traffic keys for the resumed connection.
Does TLS encrypt every part of a network connection?
TLS protects application data carried after the handshake, but some connection metadata remains visible. Which handshake fields are exposed depends on the version and extensions in use.
Can an expired certificate be used safely because encryption still works?
Encryption can be negotiated, but a client should reject or warn about an expired certificate because its identity validation is not current under normal verification rules.
What is a certificate authority?
A certificate authority signs certificates that clients may trust through a configured certificate chain. Trust depends on local trust stores and successful validation, not just the issuer name.
What does ALPN negotiate?
Application-Layer Protocol Negotiation lets TLS peers agree on an application protocol such as HTTP/2 or HTTP/1.1 during the handshake.
Does a valid certificate prevent phishing?
No. A certificate can validate a phishing domain that an attacker controls. Users should inspect the hostname and context rather than treating encryption as a trust verdict.

