During a TLS handshake, the server sends a Certificate message containing its X.509 certificate, sometimes with a full chain. Learn how trusted authorities and hostname checks help confirm that the server is who it claims to be—before secure communication begins.

Multiple Choice

Which TLS handshake message from the server conveys its identity via certificate?

In TLS, the server proves its identity by sending its certificate in a dedicated Certificate message. This message carries the server’s X.509 certificate (and may include an entire certificate chain) that binds the server’s public key to its identity. The client validates this certificate against trusted authorities and checks that the certificate matches the intended hostname before proceeding with the key exchange. The ServerHello carries only version, cipher suite, and random values; the ServerKeyExchange contains key exchange parameters; HelloRequest is used for renegotiation. So the certificate message is the one that conveys identity via certificate.

How TLS Certificates Establish a Server’s Identity

When you connect to a website over HTTPS, your browser needs more than a secure-looking padlock. It needs a way to check that the server really belongs to the site you meant to visit. TLS handles that check through a handshake, a short exchange of messages that sets up a protected connection. One message has a special role: Certificate. It carries the server’s digital certificate, which links the server’s public key to its stated identity.

That sounds simple, but the details matter. A certificate doesn’t magically prove a website is honest, and simply seeing one in a network capture doesn’t mean the connection is secure. The client must verify the certificate and the surrounding handshake. Here’s how the pieces fit together.

A certificate is a digital ID, not a secret

A TLS certificate is a digital document, usually in X.509 format. It contains information such as the names of the sites it covers, the server’s public key, the organization that issued it, and its validity dates. The certificate is digitally signed by a certificate authority, or CA.

Think of the certificate as an ID card with a tamper-evident seal. The ID names a site and provides a public key. The CA’s signature helps the client check that the document hasn’t been altered and that an issuer the client trusts vouched for it.

The certificate itself is public. It isn’t a password, and it doesn’t contain the server’s private key. The server keeps that private key secret. During TLS authentication, the server uses it to show that it controls the key paired with the public key in the certificate. That distinction is central: the certificate presents an identity claim, while cryptographic checks help show that the server can back it up.

What happens when the Certificate message arrives?

In a typical TLS handshake, the client and server first exchange information about the protocol and connection settings. The server sends a ServerHello message to confirm details such as the selected TLS version and cipher suite, along with random values used by the protocol. ServerHello is important, but it doesn’t carry the server’s identity certificate.

The server’s Certificate message does that. It carries the server’s certificate and may include additional certificates that form a chain back to a trusted root. The chain helps the client trace the server’s certificate to an authority already trusted by the operating system, browser, or application.

The client then checks several things. Does the certificate cover the hostname the user requested? Is it within its validity period? Does its signature chain lead to a trusted CA? Has it been revoked, where revocation checks are available? These checks are distinct from one another. A certificate can be properly signed yet still be wrong for the hostname, expired, or otherwise unsuitable.

If the checks succeed, the client can use the public key and other handshake data as part of establishing the secure session. Modern TLS also uses additional cryptographic steps to confirm that the peer controls the relevant private key and that the handshake hasn’t been tampered with. In short, the certificate starts the identity check; it isn’t the entire check.

The other handshake messages have different jobs

TLS handshake messages can look like a jumble of names when you first encounter them in a packet capture. It helps to think of them as a small conversation, with each message handling a different task.

ServerHello selects connection parameters. It tells the client, in effect, “Here are the settings we’ll use.” It doesn’t carry the server’s certificate.

ServerKeyExchange, used in some TLS versions and cipher-suite configurations, supplies parameters for a key exchange. It may also be digitally signed, depending on the connection. Its job relates to creating shared keys, not presenting the certificate itself.

HelloRequest is associated with renegotiation in older TLS versions. It is not the message that conveys the server’s certificate. In TLS 1.3, the handshake flow changed considerably, and several older messages are no longer used in the same way.

These distinctions are useful when reading a capture. A message may contribute to authentication or key establishment without being the message that carries the certificate. In TLS, similar jobs often work together, but they aren’t interchangeable.

TLS version changes what Wireshark can show

Wireshark can decode TLS handshake messages and display their fields, which makes it a useful tool for understanding a connection. In many TLS 1.2 handshakes, the Certificate message appears in the capture after the ServerHello and is visible without decrypting the application traffic.

TLS 1.3 changes the view. After ServerHello, most later handshake messages are encrypted. That includes the server’s Certificate message in a typical full handshake. A packet capture may show that encrypted handshake data exists, but Wireshark may not be able to label its contents as Certificate unless it has access to the session’s secrets.

This can surprise people: the certificate was sent, but the capture doesn’t plainly display it. That doesn’t necessarily point to a fault. It may simply reflect TLS 1.3’s stronger privacy for handshake details. If session secrets are available and configured for decryption, Wireshark can often decode those messages. Otherwise, the encrypted records remain opaque.

There are other reasons a certificate may not appear as expected. A connection might resume an earlier session, use a different authentication arrangement, or be captured after the handshake has already begun. Network address translation, proxies, and capture location can also affect what traffic is visible. Packet analysis always depends on where and when the capture was made.

Reading the Certificate details in Wireshark

When Wireshark can decode the message, expand the TLS handshake section in the packet details pane and look for the Certificate message. The exact labels vary a little by Wireshark version and TLS version, but the certificate list and its fields are usually available there.

Start with the certificate’s subject names and the hostname being accessed. Modern certificates commonly identify covered domains in the Subject Alternative Name field. Then inspect the issuer, validity dates, public-key information, and any intermediate certificates included in the chain. If there are several certificates, the server certificate is usually followed by one or more intermediates; the root certificate is often already stored on the client and may not be sent.

A packet capture can reveal what the server transmitted, but it doesn’t automatically tell you whether the client accepted it. To understand the outcome, look at the rest of the handshake and any alerts or connection failures. Also remember that a certificate’s presence alone says little about the site’s trustworthiness. A valid certificate can protect the connection to a site without proving that the site itself is fair, accurate, or safe to use.

One message, one important part of trust

The TLS Certificate message is where a server presents its identity certificate. ServerHello negotiates connection details; key-exchange messages help establish shared secrets; and the Certificate message supplies the document the client can validate against the requested hostname and its trusted certificate authorities.

Wireshark makes this exchange easier to inspect, but the TLS version shapes what you can see. In TLS 1.2, certificate details may be plainly visible in a capture. In TLS 1.3, they’re typically encrypted unless the session can be decrypted. Either way, the core idea stays the same: the certificate is a public identity document, and TLS combines it with cryptographic proof to build trust in the connection.