Security · Lesson 01

How does a certificate establish trust?

A secure connection needs more than encryption. A certificate helps a browser check which service it is speaking to and whether a trusted authority vouches for that identity.

Identity before trust

Encryption does not identify the other side by itself.

TLS (Transport Layer Security) can protect data in transit, but the client still needs evidence that the service belongs to the requested name. A certificate binds an identity, such as a hostname, to a public key and includes a signature from an issuer.

The browser compares that evidence with its trust store, the requested hostname, and the certificate's validity period. A failure in one check can produce a warning even when the connection is encrypted.

Ask what failed.A certificate warning may involve identity, trust, time, or chain construction. It does not automatically mean that every byte is exposed.

Certificate trust

What is Public Key Infrastructure (PKI)?

A root certificate authority (CA) is trusted directly by the client through its trust store. It can authorize an intermediate CA, which can then issue a leaf certificate for a service such as api.example.com.

During a TLS connection, the browser checks the leaf certificate's hostname, dates, signature, and public-key proof, then follows the issuer signatures toward a trusted root. Trust in the chain does not mean the application itself is safe; it means the key is authorized for that identity.

Root, intermediate, leaf.The root anchors trust, the intermediate delegates issuance, and the leaf identifies the service the browser requested.

Certificate lifecycle

Trust must be maintained after issuance.

A certificate has a limited validity period and must be renewed before it expires. An issuer may also revoke it early if a private key is compromised, a name is no longer controlled, or the certificate was issued incorrectly.

Clients can use revocation information such as certificate revocation lists or Online Certificate Status Protocol (OCSP) responses, depending on their policy and environment. A certificate that was valid yesterday is not automatically valid today.

Issuance is one moment in the lifecycle.Identity, dates, chain trust, key proof, and current status all contribute to the decision made by the client.

Build the model

Four certificate checks

01

Hostname

The requested name must match an identity listed in the certificate.

02

Validity

The current time must fall between the certificate's start and expiry dates.

03

Trust chain

The issuer chain must lead to a certificate authority trusted by the client.

04

Key binding

The service must prove it controls the private key paired with the certificate.

Mini investigation

Inspect a certificate warning

Select the observed clue and identify the most direct check to perform.

DIAGNOSISHostname check

The certificate identity does not match the hostname requested by the client.

Compare the requested hostname with the certificate's names.

Knowledge check

Test your certificate model

Answer ten questions. The answer order changes each time.

0 / 10