A browser can accept a website's certificate and still tell you almost nothing about whether the website deserves your money, your password, or your trust.
That sounds strange because digital certificates are commonly described as proof of identity. The description is useful, but incomplete unless you ask a more precise question:
What identity is being proved, to whom, under which rules, and for what key?
A public-key certificate is best understood as a signed binding between an identifier and a public key. The certificate authority (CA) signs that binding according to a certificate policy. A relying party then decides whether to trust the chain, whether the certificate matches the identity it expected, whether the certificate is currently acceptable, and whether the peer can actually prove control of the corresponding private key.
Those checks work together. None of them means “this website is safe.”
For a normal HTTPS connection, a useful mental model is:
certificate -> whose public key is this?
trust chain -> why should I accept the issuer?
identity check -> is this the site I asked for?
private-key proof -> does this endpoint control the matching private key?
key exchange -> how do we establish session keys?
symmetric encryption -> how do we protect the actual traffic?
Once those jobs are separated, certificates become much easier to reason about.
2. A Certificate Binds an Identifier to a Public Key
The central job of a digital certificate is narrower than “prove everything about this entity.”
A certificate contains a public key, one or more identifiers, information about the issuer and validity period, usage constraints, and a digital signature from the issuing CA. The signature allows a relying party to detect unauthorized changes and verify that the issuing CA signed the certificate data.
The useful statement is:
This issuer signed a certificate that binds these identifiers to this public key, subject to the certificate's stated constraints and the issuer's policy.
That is the foundation of Public Key Infrastructure (PKI).
For a TLS server certificate, the identifiers commonly include Domain Name System (DNS) names in the certificate's Subject Alternative Name (SAN) extension. For other certificate types, the identity and permitted uses can be different.
The certificate does not contain the subject's private key. The private key remains separate and should stay under the subject's control.
That distinction matters because copying a public certificate is easy. Certificates are intentionally sent to clients during protocols such as TLS. The security value comes from the fact that only the legitimate holder should possess the matching private key.
3. Trust Has Conditions
A valid-looking signature is not enough by itself.
Suppose someone creates a certificate for example.test, generates a key pair, and signs the certificate with a CA they created five minutes ago. The mathematics can be perfectly correct. The certificate can parse correctly. The signature can verify correctly against that CA's public key.
Your browser still has no reason to trust that CA.
Trust begins from a trust anchor, usually a root CA certificate or another trusted public key that the operating system, browser, application, or organization has accepted through some separate process.
That creates an important distinction:
- Cryptographic validity asks whether signatures and certificate structures verify correctly.
- Trust asks whether the validation path reaches a trust anchor the relying party accepts and whether all required policy and certificate constraints are satisfied.
A certificate can be cryptographically well formed and still be untrusted.
It can also chain to a trusted CA and still fail for another reason, such as the wrong hostname, expiration, revocation, or an invalid key usage.
So “signed by a CA” is not the finish line. It is one part of the validation path.
4. Read the Certificate as a Set of Claims and Constraints
You do not need to memorize every X.509 field. Start with the fields that change your trust decision.
| Certificate field | What to ask |
|---|---|
| Subject Alternative Name | Which DNS names, IP addresses, or other identities does this certificate cover? |
| Subject | What subject information is included, if any? |
| Issuer | Which CA issued and signed this certificate? |
| Public key | Which public key is being bound to the listed identity? |
| Validity period | Is the current time within the certificate's allowed operational period? |
| Key Usage | Which cryptographic operations is this key allowed to perform? |
| Extended Key Usage | Is the certificate authorized for a purpose such as server or client authentication? |
| Basic Constraints | Is this an end-entity certificate or a CA certificate, and can it issue certificates beneath it? |
| Serial number | Which unique certificate issued by this CA is this? |
| CA signature | Can the certificate data be verified as signed by the issuer? |
The public-key algorithm and the algorithm used to sign the certificate are also separate ideas.
A certificate can contain an RSA public key while the issuing CA signs that certificate with a different supported signature algorithm. Likewise, the public key inside a server certificate may later be used to verify the server's handshake signature rather than to encrypt the entire TLS connection.
The certificate is a signed data structure describing the key and its permitted context. It is not the encrypted session itself.
5. Build the Trust Chain Back to an Accepted Root
Public certificates are normally validated through a certification path.
A common hierarchy looks like this:
trusted root CA
|
v
intermediate CA
|
v
server certificate
The server certificate is often called the leaf or end-entity certificate. It is signed by an intermediate CA. That intermediate may be signed by another intermediate or by a root CA.
The client validates the signatures and constraints along the path until it reaches a trust anchor it already accepts.
Why the root can be self-signed
A root CA certificate is often self-signed, but the self-signature is not what makes it trusted.
The trust comes from the root being deliberately installed or distributed as a trust anchor through the operating system, browser, enterprise policy, application, or another controlled mechanism.
That is why “self-signed” and “untrusted” are related in many everyday browser situations but are not synonyms.
Why intermediate CAs matter
Intermediate CAs keep heavily protected root keys away from routine certificate issuance. They can also enforce narrower policies or constraints for different types of certificates.
If an intermediate certificate is missing or the client cannot build a valid path to a trusted root, the end-entity certificate may fail validation even when the leaf certificate itself is otherwise correct.
The question is not merely “Is this leaf signed?” It is “Can I build an acceptable path from this leaf to a trust anchor I already trust?”
6. The Certificate Must Match the Identity You Expected
A trusted chain does not authorize a certificate for every website on the Internet.
If you connect to:
https://portal.example.com/
the client needs to verify that the certificate contains an identity that matches portal.example.com according to the applicable TLS identity rules.
Current Internet Engineering Task Force guidance in RFC 9525 says DNS service identities are checked through the dNSName entries in the Subject Alternative Name extension. A client should not fall back to treating the old Common Name field as the DNS identity source.
This is why a certificate can be:
- signed by a trusted CA;
- within its validity period;
- cryptographically intact;
- and still wrong for the site you requested.
A certificate for shop.example.com does not become valid for bank.example.net because both certificates happen to chain to the same public root CA.
The expected identity is part of the security decision.
Wildcards have scope too
A wildcard such as:
*.example.com
can cover names within the allowed wildcard rules, but it is not a universal pass for arbitrary deeper names or unrelated domains.
The durable rule is simpler than memorizing edge cases:
Trust the certificate only for an identity the certificate actually covers and the application actually expected.
7. TLS Also Proves Control of the Matching Private Key
A certificate by itself is public information. Anyone can download a server's certificate.
So how does TLS prevent someone from copying the certificate and pretending to be the same server?
The endpoint must prove it controls the private key that corresponds to the certificate's public key.
In a certificate-authenticated Transport Layer Security (TLS) 1.3 handshake, the server sends its certificate chain and then sends a CertificateVerify message. That message contains a digital signature over the handshake transcript using the private key corresponding to the certificate's public key.
The client verifies that signature with the public key from the certificate.
That proves something the certificate alone cannot prove:
The endpoint participating in this handshake possesses the private key that matches the certified public key.
This is why stealing only a public certificate is not enough to impersonate the server. Stealing the private key is much more serious.
It also explains why a server can have a perfectly valid certificate but still fail the handshake if its private key is missing, mismatched, inaccessible, or unusable for the required signature scheme.
Certificates establish the key's identity context. The protocol proves current control of the matching private key.
8. Expiration and Revocation Answer Different Questions
Certificates are not trusted forever.
Expiration is scheduled
Every certificate has a validity period. Outside that period, the certificate should not be accepted as currently valid for normal use.
Expiration does not automatically mean the private key was stolen or the certificate was fraudulent. It means the certificate has reached the end of the operational period authorized by the issuer.
Shorter certificate lifetimes reduce how long old certificate information and keys can remain in service without renewal.
For publicly trusted TLS subscriber certificates, the CA/Browser Forum Baseline Requirements currently set these maximum validity periods:
| Certificate issued | Maximum validity |
|---|---|
| March 15, 2026 through March 14, 2027 | 200 days |
| March 15, 2027 through March 14, 2029 | 100 days |
| March 15, 2029 and later | 47 days |
That schedule is an operational policy for publicly trusted TLS certificates. It does not mean a certificate becomes “more trustworthy” merely because its lifetime is shorter.
Revocation is an early stop
Revocation is different. A CA may revoke a certificate before its normal expiration when circumstances require it, such as key compromise or incorrect issuance.
Certificate Revocation Lists (CRLs) and the Online Certificate Status Protocol (OCSP) are two mechanisms associated with certificate-status checking.
A simple way to keep the concepts separate is:
expiration -> planned end of validity
revocation -> stop trusting before the planned end
Neither one should be confused with hostname matching, chain trust, or proof of private-key possession. Those are separate checks.
9. A Valid HTTPS Certificate Does Not Mean the Site Is Safe
This is the most important limit to remember.
A valid certificate can support a secure connection to the identity named in the certificate. It does not certify the quality, honesty, or safety of everything behind that identity.
A valid certificate does not prove that:
- the website is not a phishing site;
- the business will deliver what it sells;
- the web application has no vulnerabilities;
- the server has never been compromised;
- the content is accurate;
- the operator has good privacy practices;
- every download from the site is safe;
- the domain belongs to the company you assumed it did based only on the name.
Public TLS certificate issuance commonly includes validation that the applicant is authorized to request a certificate for the listed domain name or IP address. That is valuable because it prevents a CA from casually issuing a certificate for someone else's domain.
But domain authorization and business reputation are different questions.
An attacker can legitimately control a newly registered domain such as secure-account-help.example and obtain a valid certificate for that domain. The certificate can correctly prove the attacker's control of the certified domain and key while the site itself remains malicious.
The certificate system is doing its job. The user made a different assumption about what that job was.
A useful translation of HTTPS is:
The connection can be authenticated and encrypted for the identity the certificate covers, assuming the validation checks succeed.
Do not silently append “and therefore the site is trustworthy.”
10. Self-Signed Certificates Are About Where Trust Comes From
A self-signed certificate is signed by the same key pair whose public key appears in the certificate rather than by a separate issuing CA.
That does not make the cryptography useless. It changes the trust problem.
If you visit an unfamiliar public site that presents an unknown self-signed certificate, your browser has no independent reason to believe the identity-to-key binding. Anyone can create a self-signed certificate containing any name they want.
In a controlled environment, the situation can be different.
An organization may deliberately create a private root CA, distribute that root certificate to managed devices, and use it as a trust anchor for internal certificates. The root may itself be self-signed. Trust comes from the controlled distribution of the root, not from its self-signature.
You can also manually trust a specific self-signed certificate when you have a secure way to verify it out of band.
So the better rule is:
Ask why this key is trusted. Do not use “self-signed” as a complete trust analysis.
11. Follow the Certificate Through a TLS 1.3 Handshake
Put the pieces together with a simplified visit to:
https://portal.example.com/
1. The client starts the TLS handshake
The browser offers supported TLS parameters and key-exchange information.
The certificate has not encrypted anything yet.
2. The client and server establish shared key material
TLS 1.3 can use ephemeral Diffie-Hellman key agreement, such as Elliptic Curve Diffie-Hellman Ephemeral (ECDHE), to establish fresh shared secret material.
This is the job covered in Diffie-Hellman vs. RSA.
3. The server sends its certificate chain
The chain gives the client the server certificate and the certificates needed to build toward a trusted root.
The client can now ask:
- Does the chain validate to a trust anchor I accept?
- Is the certificate currently valid?
- Does the certificate cover
portal.example.com? - Are its usages and constraints appropriate for server authentication?
4. The server proves possession of the private key
The server signs the TLS handshake transcript in CertificateVerify.
The browser verifies that signature using the public key in the server certificate.
Now the browser has evidence that the endpoint controls the private key corresponding to the certified public key.
5. TLS derives traffic keys
The connection uses the established key material to derive symmetric traffic keys.
The actual application data is then protected with efficient authenticated symmetric encryption.
The certificate did not perform all five jobs. It participated in one part of a larger authenticated key-establishment process.
That is why these statements can all be true at the same time:
certificate chain -> authenticates the certified public key and identity context
CertificateVerify -> proves control of the matching private key
ECDHE -> establishes fresh shared secret material
symmetric cipher -> protects the application traffic
12. Diagnose Certificate Problems by the Check That Failed
When a certificate-related warning or exam scenario appears, avoid treating every problem as “bad certificate.”
Ask which check failed.
| Clue | What failed? |
|---|---|
| Certificate chains only to an unknown CA | Trust-anchor or chain validation |
| Certificate is valid for another hostname | Service identity matching |
| Current date is after the certificate's end date | Validity period |
| Certificate was explicitly revoked before expiration | Certificate status |
| Server has the certificate but not the matching private key | Proof of private-key possession |
| HTTPS works, but the site is fraudulent | No certificate-validation failure; the certificate never promised business legitimacy |
The durable rule is:
A digital certificate supports a trusted binding between an identity and a public key. The surrounding protocol and validation process determine whether that binding is acceptable for the connection you are making.
That is a much narrower claim than “the site is safe,” and it is exactly why certificates are useful.
13. Official References
- NIST CSRC Glossary: Public key certificate
- NIST CSRC Glossary: Trust anchor
- IETF RFC 5280: Internet X.509 Public Key Infrastructure Certificate and CRL Profile
- IETF RFC 9525: Service Identity in TLS
- IETF RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3
- IETF RFC 6960: X.509 Internet Public Key Infrastructure Online Certificate Status Protocol
- CA/Browser Forum: Server Certificate Baseline Requirements