How to Check if an SSL Certificate Is Valid
To check whether an SSL certificate is valid, confirm four things: it has not expired, the name you visit is on it, it chains to a trusted root, and it has not been revoked. Three ways to check, from quick to thorough.
Check an SSL certificate is valid in the browser
- Open the site over https://.
- Click the padlock or site settings icon in the address bar.
- Open "Connection is secure" and then the certificate details.
- Read the "Issued to" names, the issuer and the validity dates.
If the page shows a warning instead of the padlock, the browser has already told you the certificate is not valid. Common codes are explained in the expired date fix, the name mismatch fix and the untrusted authority fix.
With OpenSSL
openssl s_client -connect example.com:443 \
-servername example.com </dev/null 2>/dev/null \
| openssl x509 -noout -subject -issuer -dates \
-ext subjectAltName
Check that the dates include today and that your hostname is in the subjectAltName list. To see the verification result, run:
openssl s_client -connect example.com:443 \
-servername example.com </dev/null 2>&1 | grep "Verify return"
"Verify return code: 0 (ok)" means the chain verified. Any other code names the problem, such as an unable-to-get-local-issuer error for a missing intermediate.
With an online tool
Online checkers test from outside your network and the whole chain, which catches problems a browser cache hides. Use the free SSL certificate checker, the chain checker or the HTTPS checker.
What each check proves
| Check | Meaning if it fails |
|---|---|
| Not expired | Certificate needs renewal |
| Hostname in SAN list | Wrong certificate or missing name |
| Chain complete | Intermediate missing from the server |
| Trusted root | Self-signed or unknown issuer |
| Protocol support | Server uses outdated TLS |
Other things to look at
- Which certificate does each hostname serve? www and the bare domain can differ.
- Does a CDN serve a different certificate than your origin?
- Do subdomains have their own certificates or a wildcard?
- Is the TLS version at least 1.2? See the TLS configuration guide.
Check other people's sites
The same tools work on any public site. Before entering a password or card, make sure the domain in the address bar is the one you expect. A valid certificate means the connection is encrypted to that domain, not that the site is trustworthy.
Keep it valid
Once your own check passes, set up monitoring so you hear about expiry before visitors do. The 7-day alert guide shows how.
Check whether an SSL certificate is valid: reading the results
When you read the output, focus on the notAfter date and the Subject Alternative Name list. The notBefore date matters too: a certificate that is not yet valid is rare but happens when a server clock is wrong. If you see an issuer name you do not recognize on your own site, someone may have installed a different certificate, or a proxy or CDN sits in the path.
When the results disagree
If the browser says valid and OpenSSL says otherwise, suspect a missing intermediate, a different certificate for a different hostname or a proxy in front of the site. Test the exact hostname with -servername set, since servers pick the certificate by name.
Related reading: the free SSL certificate checker, checking for TLS and SSL vulnerabilities and the common name mismatch error.
Frequently Asked Questions
Why does it work for me but not for others?
Your browser may have cached an intermediate certificate that other devices lack. Test with an external chain checker.
Can a valid certificate still be a phishing site?
Yes. Validity only means the connection is encrypted to that domain. Read the domain carefully.
How do I check revocation?
Browsers handle it in their own way. For most owners, the practical check is whether the issuer and dates look right and the chain verifies. Revoked certificates are rare and usually follow a key leak.
How often should I check?
Automate it. A monitor that checks daily and alerts while at least a third of the certificate lifetime is left catches problems early.
Does a padlock mean the certificate is valid?
No. A padlock means the browser accepted the certificate for that page. It does not tell you the certificate covers every hostname you use, or that the chain is complete on other subdomains, so run the checks above on each name you serve.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.