0Pricing
Cryptology Academy · Lesson

Certificate Validation in TLS

Trace how the client verifies the server certificate chain.

Certificate Validation in TLS is a free Cryptology Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cryptology Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Why Validate Certificates?

Without certificate validation, a TLS connection could be established to an attacker posing as the server (man-in-the-middle). Certificate validation ensures you are talking to the legitimate server that controls the private key.

X.509 Certificate Fields Relevant to TLS

Key fields: Subject (who owns the cert), SubjectAltName (DNS names/IPs), Issuer (signing CA), Validity (notBefore/notAfter), Public Key, Signature. The browser checks all of these.

Chain of Trust

Server cert → Intermediate CA cert → Root CA cert. The root CA is self-signed and pre-installed in the OS/browser trust store. The server sends its cert + intermediates in the TLS handshake Certificate message.

Signature Verification

Each certificate is signed by the issuer above it. The client verifies: signature(cert_n) using public_key(cert_{n+1}). If any signature is invalid, the chain is rejected. The root is trusted by pre-installation, not signature.

Name Validation

The client checks that the server's hostname matches the certificate Subject or SubjectAltName (DNS entries). Wildcards (*.example.com) match one label. Since 2000, SAN takes precedence over CN for hostname matching.

Validity Period Check

The client checks notBefore ≤ now ≤ notAfter for every cert in the chain. Expired certificates are rejected even if signatures are valid. Certificate lifetimes have shrunk: browsers now cap at ~398 days.

Revocation: CRL

The CA publishes a Certificate Revocation List (CRL) — a signed list of serial numbers of revoked certs. The client downloads the CRL URL (from the cert's CRL Distribution Points extension) and checks for the serial number.

Revocation: OCSP

Online Certificate Status Protocol (OCSP) lets clients query the CA's OCSP responder for a single cert's status. Faster than CRL but adds latency. OCSP Stapling has the server include a signed OCSP response in the TLS handshake.

Certificate Transparency

CT (RFC 6962) requires CAs to log all issued certs to public, append-only logs. Browsers check for Signed Certificate Timestamps (SCTs) in the cert or TLS extension. This prevents mis-issuance going undetected.

Pinning

HTTP Public Key Pinning (HPKP, deprecated) and certificate pinning in mobile apps pin a specific public key or cert hash. If the server presents a different cert, the connection is rejected even if valid — prevents CA compromise attacks.

Common Validation Errors

ERR_CERT_AUTHORITY_INVALID: root not trusted. ERR_CERT_DATE_INVALID: expired. ERR_CERT_COMMON_NAME_INVALID: hostname mismatch. NET::ERR_CERT_REVOKED: OCSP/CRL says revoked. Each maps to a specific validation step failure.

Quick Check

What does OCSP Stapling accomplish?

Recap

Certificate validation in TLS involves chain verification, signature checking, name matching, validity periods, and revocation. Next: historical TLS attacks and how TLS 1.3 mitigates them.

Frequently asked questions

Is the “Certificate Validation in TLS” lesson free?

Yes — the full text of “Certificate Validation in TLS” is free to read here on the web, and the Cryptology Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cryptology Academy course, upgrade to CoddyKit PRO.

What will I learn in “Certificate Validation in TLS”?

Trace how the client verifies the server certificate chain. You practise Cryptology Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cryptology Academy?

No prior experience is required. Cryptology Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Certificate Validation in TLS” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cryptology Academy lesson?

Yes. Every Cryptology Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. TLS 1.3 Handshake Step by Step
  2. TLS Record Layer & Cipher Suites
  3. Certificate Validation in TLS
  4. TLS Attacks: BEAST, POODLE & Downgrade
← Back to Cryptology Academy