👉 Master your Security+ skills with Pluralsight here: Pluralsight
You’ll learn how digital certificate validation works, including PKI trust chains, hostname checks, and CRL and OCSP revocation checks. Build your CompTIA Security+ foundation so you can understand browser warnings, spot broken trust, and troubleshoot certificate errors safely.
Chapters: 0:00 Intro 0:13 Why does your browser trust a digital certificate? 1:01 What checks does certificate validation actually perform? 2:01 How do CRLs and OCSP check certificate revocation? 3:34 What should you do when certificate validation fails? 4:32 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
Key Takeaways
Certificate validation checks more than signatures: the chain must reach a trusted root, dates must be valid, the hostname must match, and permitted uses, constraints, and revocation policy must be satisfied.
A root certificate is trusted because the client explicitly accepts it, not because it is self-signed. Different trust stores and policies can explain why one device accepts a certificate while another rejects it.
Hostname verification uses Subject Alternative Names (SANs). A wildcard such as *.example.com matches shop.example.com, but not example.com or a.shop.example.com; see RFC 9525.
CRLs list revoked certificates; OCSP supplies signed certificate-status responses. Both require checks for applicability, signature validity, and freshness. An OCSP “good” response does not establish overall certificate validity.
OCSP stapling lets servers deliver signed status evidence, reducing direct client queries and privacy exposure. Clients must still verify that evidence; unavailable status may trigger soft-fail or hard-fail behavior depending on policy.
Certificate validation and private-key proof are separate. Validation accepts an identity-to-public-key binding; the TLS handshake proves possession of the corresponding private key. Neither guarantees that a website is honest or safe.
Troubleshoot the specific error, never bypass warnings or install an unfamiliar root to silence them. Check the device clock, SANs, intermediate chain, trust anchor, certificate purpose, and revocation evidence. OpenSSL verification can help, but does not automatically reproduce browser policy or comprehensive online revocation checks.
👉 Turn understanding into hands-on practice with Pluralsight, an optional next step with guided security labs, feedback, assessments, and practice exams to identify gaps and focus your certification preparation.
Digital certificate validation is how a browser or other application decides whether to accept a certificate for a particular identity and purpose. It checks more than an issuer’s signature: trust, validity dates, hostname, permitted uses, and revocation status all matter.
A useful way to understand the process is to separate three questions:
Identity: Does this certificate identify the server you intended to reach?
Trust: Does it satisfy the client’s certificate policies and connect to an accepted authority?
Key possession: Can the server prove it holds the corresponding private key?
The first two involve certificate validation. The TLS handshake establishes private-key possession separately. Together, these checks help authenticate a connection, but they do not guarantee that a website is honest or its content is safe.
Some links may earn a commission. Thanks for your support.
Watch in the video playerOpen the dedicated player for this course.
Digital Certificates and PKI: The Foundation of Trust
A digital certificate binds an identity to a public key. Most certificates used for HTTPS follow the X.509 format.
A certificate contains information such as:
Certificate information
What it does
Subject identifiers
Identify the server, person, device, or organization associated with the key
Public key
Provides the public half of the cryptographic key pair
Issuer
Identifies the certificate authority that issued the certificate
Validity dates
Define the certificate’s intended period of use
Serial number
Identifies the certificate within its issuer’s scope
Extensions
Specify identities, permitted uses, and restrictions
Issuer’s digital signature
Allows verification of the signed certificate information
The certificate does not contain the private key. Public certificates can be shared; their corresponding private keys must remain protected.
Public Key Infrastructure (PKI) is the framework used to issue, manage, and revoke certificates. Within that framework, a certificate authority (CA) signs certificates, and a relying party, such as your browser, decides whether to accept them.
How the Certificate Chain Works
A typical HTTPS certificate chain looks like this:
Trusted root CA
└── Intermediate CA
└── Website certificate for shop.example.com
The website’s certificate is called the leaf certificate or end-entity certificate. Intermediate CA certificates connect it to a trusted root.
The root is trusted because the browser, operating system, or administrator has accepted it through a trusted configuration or distribution process. It is not trusted merely because it signs itself.
That distinction explains why a certificate can work on one device and fail on another: the devices may have different trust stores or validation policies.
Certificate Validation Explained Step by Step
Consider a browser connecting to shop.example.com. The following sequence describes the main checks conceptually; actual implementations may combine them, use cached information, or evaluate multiple possible chains.
1. Receive the Server’s Certificate and Supporting Chain
During a full certificate-authenticated TLS handshake, the server sends its certificate and supporting certificates, typically including intermediate CAs.
The trusted root usually does not need to be sent. The client must already trust the anchor independently; receiving a root certificate from an unfamiliar server does not make it trustworthy.
2. Build a Path to a Trusted Root
The client identifies the leaf certificate’s issuer, then that issuer’s issuer, continuing toward an accepted trust anchor.
It may use certificates supplied by the server, certificates stored locally, or supported retrieval mechanisms.
There are two distinct tasks here:
Path building: Can the client assemble a candidate chain?
Path validation: Does that chain satisfy the applicable rules?
Finding a chain is not enough. Every relevant check must still pass.
3. Verify the Certificate Signatures
The client uses each issuer’s public key to verify the signature on the certificate that issuer signed.
This checks that the signed certificate information has not been altered and was signed using the corresponding issuer key.
It is signature verification, not “decrypting the certificate.” Certificates are public information; the signature protects their integrity and authenticates their issuance.
4. Check the Validity Dates
Certificates have a validity interval, commonly represented by notBefore and notAfter.
Validation can fail if a certificate:
Has expired.
Is not yet valid.
Appears outside its validity period because the device clock is incorrect.
Time-related failures can affect intermediate certificates as well as the website’s leaf certificate.
5. Match the Hostname Against the SAN
For modern TLS service identity verification, the client checks the requested hostname against the certificate’s Subject Alternative Name (SAN) entries.
For example:
Certificate SAN
Requested hostname
Match?
shop.example.com
shop.example.com
Yes
mail.example.com
shop.example.com
No
*.example.com
shop.example.com
Yes
*.example.com
a.shop.example.com
No
*.example.com
example.com
No
A trusted certificate for the wrong hostname does not authenticate the intended server. Connections made to an IP address require an appropriate matching IP-address identifier.
The modern service identity rules in RFC 9525 specify SAN-based verification rather than relying on the subject’s Common Name.
6. Enforce Permitted Uses and Certificate Constraints
Certificates are not interchangeable credentials for every cryptographic task.
The verifier evaluates relevant restrictions, including:
Key Usage: Which operations the key may perform.
Extended Key Usage: Which purposes the certificate supports, such as TLS server authentication.
Basic Constraints: Whether a certificate can act as a CA.
Path-length constraints: Restrictions on subordinate CA depth.
Cryptographic policy: Whether algorithms and key strength are acceptable.
An unrecognized critical extension must cause rejection rather than being silently ignored. These processing rules are part of the X.509 framework described in RFC 5280.
7. Evaluate Revocation Status
A certificate can be correctly signed, unexpired, and issued for the right hostname but still have been revoked.
The client evaluates available revocation information according to its implementation and policy. Common mechanisms include Certificate Revocation Lists, OCSP responses, and locally distributed browser revocation data.
How CRLs and OCSP Check Certificate Revocation
Revocation withdraws a certificate before its scheduled expiration. A compromised private key is one reason to revoke a certificate; changed affiliation or cessation of operation can also be reasons.
Expiration and revocation are different:
Expiration occurs when the certificate reaches the end of its validity period.
Revocation communicates that it should no longer be accepted before that time.
Certificate Revocation Lists
A Certificate Revocation List (CRL) is a signed list identifying revoked certificates within its scope, commonly by serial number.
A client must do more than download a list and search it. It needs to verify that the CRL:
Applies to the certificate being checked.
Has a valid signature from an appropriate authority.
Is sufficiently fresh.
CRLs include update information such as thisUpdate and nextUpdate. They can be cached and reused, reducing repeated network requests. However, publication and caching intervals can delay when relying parties learn about a revocation.
Absence from an arbitrary CRL is not proof that a certificate is unrevoked, the list must cover the certificate in question.
Online Certificate Status Protocol
The Online Certificate Status Protocol (OCSP) provides signed status information about a certificate.
OCSP status
Meaning
good
The responder does not report the certificate as revoked under the response’s applicable conditions
An OCSP “good” response does not mean the certificate passes every validation check. It does not establish that the hostname matches, the validity dates are acceptable, or the website is safe.
The client must also validate the response’s signature, responder authorization, certificate association, and freshness. OCSP responses can be cached, so “online” does not necessarily mean a newly generated answer for every connection. These distinctions are defined in RFC 6960.
OCSP Stapling
With OCSP stapling, the server obtains a signed OCSP response and delivers it during the TLS handshake.
The client can then evaluate that response without making its own direct request to the responder. This reduces direct status-query traffic and associated privacy exposure.
The server is only transporting the evidence. The client still verifies the signed response.
Soft Fail Versus Hard Fail
What happens if revocation information is unavailable depends on policy.
Policy
Behavior
Trade-off
Soft fail
Continue despite being unable to determine revocation status
Neither approach turns missing or unknown status into affirmative evidence that a certificate is good.
Browsers also do not all contact an OCSP responder on every visit. Some use locally distributed revocation information. For example, Chromium documents CRLSets as part of its revocation approach. Exact behavior depends on the browser, configuration, and policy.
Certificate Validation Versus TLS Private-Key Proof
A public certificate can be copied. Copying it does not give someone the corresponding private key.
In a certificate-authenticated TLS 1.3 handshake, the server uses a CertificateVerify message to demonstrate possession of that key by signing handshake information. The client verifies that signature.
The distinction is important:
Certificate validation determines whether the identity-to-public-key binding is acceptable.
Handshake authentication demonstrates possession of the corresponding private key.
Authorization determines what an authenticated identity may access.
A valid client certificate, for example, can identify a user or device without granting access to every application resource.
How to Troubleshoot Certificate Validation Errors Safely
Start with the exact error rather than treating every warning as the same problem.
For a managed work device, involve the administrator when an internal CA or organizational policy is involved.
Do not bypass warnings or install an unfamiliar root certificate just to silence an error. Adding a trust anchor changes which certificate issuers your system may accept.
Inspect a Saved Certificate With OpenSSL
With the appropriate local certificate files, you can request chain, server-purpose, and hostname verification:
This command does not automatically perform comprehensive online revocation checking. Its result also should not be treated as proof that every browser-specific policy would pass. The OpenSSL verification documentation describes the available options.
Understanding certificate validation helps you distinguish a broken trust chain from a hostname mismatch, an expired certificate, or unavailable revocation evidence. Practicing those distinctions makes troubleshooting more systematic, and safer than guessing or bypassing warnings.
If you are building a Security+ foundation, Pluralsight is an optional next step for applying these concepts. Guided security labs, feedback, assessments, and practice exams can help you identify weak spots and focus your study sessions.
Affiliate notice: Some links may earn a commission. Thanks for your support.
CRL vs. OCSP: How Does Certificate Revocation Work? (Explained Clearly)Next
FAQ
Quick answers to the questions people usually ask about this topic.
Can a phishing website have a valid HTTPS certificate?
Yes. A valid HTTPS certificate can authenticate the domain you connected to without proving that its operator is trustworthy. An attacker can obtain a certificate for a domain they control, including a lookalike domain. Check the actual hostname before entering credentials; successful certificate validation does not guarantee that a website’s content is safe.
Why does a certificate work in one browser or device but fail in another?
Clients can have different trusted root certificates, cached intermediate certificates, revocation information, and security policies. An incorrect device clock can also cause failures. Compare the exact error and the chain each client builds rather than assuming that success on one device proves the server is configured correctly.
Can a self-signed certificate provide encryption?
Yes, a self-signed certificate can be used in an encrypted TLS connection, but encryption alone does not establish that you reached the intended server. The client needs an independently trusted configuration to accept that certificate’s identity. Do not install an unfamiliar certificate as a trusted root merely to remove a warning.
Why might certificate errors continue after a website renews its certificate?
Renewal addresses the certificate’s validity period, not every validation requirement. The server might still present the old certificate, omit a necessary intermediate, or provide a certificate whose SAN entries do not match the requested hostname. Inspect the certificate and supporting chain actually served by the affected endpoint.
Does revoking a certificate immediately block it for every visitor?
No. Clients may rely on cached CRLs, cached OCSP responses, or browser-distributed revocation data, so recognition can be delayed. Behavior also depends on whether the client requires usable revocation evidence or allows the connection when that evidence is unavailable. Revocation should not be treated as an instantaneous, universal block.
Does a successful OpenSSL certificate verification mean every browser will accept the certificate?
No. The result depends on the trust certificates, verification options, and policies used by that OpenSSL command. The article’s example checks the chain, server purpose, and hostname, but it does not automatically perform comprehensive online revocation checking or reproduce every browser-specific rule. See the OpenSSL verification documentation for the available options.
How can I move from understanding certificate validation to practical cybersecurity skills?
Practice distinguishing expired certificates, hostname mismatches, missing intermediates, and revocation-related failures in an authorized lab. Explain which check failed and how to fix the underlying issue without bypassing validation. For guided security practice and broader certification preparation, explore Pluralsight as an optional next step, with labs, feedback, assessments, and practice exams to help identify gaps.
Affiliate link — I may earn a commission at no additional cost to you.
Jay's Recommendation
Turn understanding into hands-on confidence
You've built the foundations. Pluralsight adds opportunities to practice in guided security labs, get feedback, and check your knowledge with assessments and practice exams, so your next step is more than another video.
đź› Put concepts to workBuild practical skills with guided security labs and feedback.
🎯Find your weak spotsUse assessments to focus on what needs more work.
📝Check your understandingUse practice exams to guide your certification preparation.
đź§Give study sessions directionOrganize further learning with curated paths and progress tracking.