Network security

How to Check an SSL Certificate: Browser, OpenSSL and Online Tools

Checking an SSL certificate takes seconds in a browser or one terminal command. Here is how to read the expiry date, issuer, and chain — and what to do when something is wrong.

Cysoro Security TeamPublished · 7 min read
NETWORK SECURITY Check Your SSL Certificate Expiry, issuer, and chain — in seconds. CERTIFICATE ✓ Valid Issued to: example.com Expires in 142 days CYSORO
Quick answer

To check an SSL certificate, open the site in Chrome, click the icon to the left of the address bar, choose Connection is secure, then Certificate is valid, and read Expires On under Validity Period. From a terminal, run openssl s_client -connect example.com:443 -servername example.com and pipe it to openssl x509 -noout -enddate to read the notAfter date.

Key takeaways

  • The expiry date is the certificate's notAfter field; after it passes, browsers block the site with a full-page warning.
  • Check more than the date: the domain must match the Subject Alternative Name list and the trust chain must be complete.
  • Public certificates now last at most 200 days and will drop to 47 days by 2029, so automate renewal and monitoring.

Every SSL certificate has a hard end date printed inside it. The moment it passes, browsers block your site with a full-page warning — and visitors leave. Checking a certificate takes about ten seconds in a browser, or one command in a terminal. Here is how to do it properly, and what to look for beyond the date.

How do you check an SSL certificate?

The fastest way is in your browser: open the site, click the icon to the left of the address bar, open the connection details, and read the certificate's expiry date. For the full picture — chain, issuer, and every domain covered — use an online checker or OpenSSL from a terminal.

MethodBest forWhat you getTime
BrowserA quick look at one siteExpiry date, issuer, subject10 seconds
Online checkerChecking any site from any deviceDays left, chain, TLS versions, grade30 seconds
OpenSSLScripting and deep inspectionFull certificate details, exact dates1 minute
curlA fast terminal checkIssuer, expiry, verification result10 seconds

How do I check an SSL certificate in my browser?

Every desktop browser can show the certificate a site is using. The menus differ slightly, so here are the exact clicks for each one.

Google Chrome

  1. Open the site and click the icon to the left of the address (the "View site information" icon).
  2. Click "Connection is secure", then "Certificate is valid".
  3. In the certificate viewer, look under "Validity Period". "Expires On" is the expiry date.
  4. The General tab also shows the Subject (issued to) and the Issuer (issued by).

Mozilla Firefox

  1. Click the padlock, then "Connection secure", then "More information".
  2. In the Page Info window, click "View Certificate".
  3. Under "Validity", "Not After" is the expiry date.

Safari (Mac)

  1. Click the padlock in the address bar, then "Show Certificate".
  2. Expand "Details" and look for "Not Valid After".

Microsoft Edge

  1. Click the padlock to the left of the address.
  2. Click "Connection is secure", then the small certificate icon in the top corner of the pop-up.
  3. Under "Validity Period", read "Expires On".
Your browser may hide a broken chainBrowsers cache intermediate certificates, so a green padlock on your machine does not prove the server sends the full chain. Re-check with an external tool or OpenSSL from a clean machine — that is how first-time visitors see it.

How do I check an SSL certificate online?

An online checker connects to your site from the public internet — the same way a visitor's browser does — and reports the expiration date and days remaining, the full trust chain and any missing intermediates, the issuer and validation type, and the supported TLS versions.

To use one, enter your domain and run the check. No sign-up or install is needed. Try it now with our free SSL checker, which reads your certificate and shows how many days are left.

An online check is the best option when you cannot use a terminal, when you want to check a site you do not own, or when you need to see the site exactly as the public internet sees it — including whether the chain is complete. The Entero guide to checking a certificate walks through the same three methods and what each one reveals.

How do I check an SSL certificate with OpenSSL?

OpenSSL reads the certificate straight from the live server, which makes it the most reliable method for scripting and for checking a specific server behind a CDN. The -servername flag matters: without it, a server hosting many sites may return the wrong certificate.

OpenSSL: the three commands you need openssl s_client -connect example.com:443 -servername example.com | openssl x509 -noout -dates | openssl x509 -noout -checkend 2592000 # -checkend 2592000 = expires within 30 days? Replace example.com with your domain. 2592000 seconds is 30 days.
OpenSSL commands for reading a live certificate's dates. Illustration by Cysoro.

Full handshake and details:

openssl s_client -connect example.com:443 -servername example.com

Just the validity dates:

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates

This prints two lines, for example notBefore=Jun 1 00:00:00 2026 GMT and notAfter=Aug 30 23:59:59 2026 GMT. The notAfter line is the expiry date.

A yes-or-no answer you can script:

openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -checkend 2592000

This exits with success if the certificate will still be valid in 30 days (2,592,000 seconds), and fails if it expires sooner — ideal for a monitoring script or a scheduled check.

A quick check with curl:

curl -vI https://example.com 2>&1 | grep -E "expire|issuer|subject|SSL"

curl prints the issuer, the expiry date, and the verification result. On Windows, run these commands in Git Bash, which ships with OpenSSL.

What should you check on a certificate?

The expiry date is only one of five things worth checking. A certificate can be unexpired and still break your site.

  • Validity (notBefore / notAfter): the window during which the certificate is trusted. After notAfter, browsers block the site.
  • Subject Alternative Name (SAN): the list of domains the certificate covers. Your domain must appear here exactly — a certificate for example.com does not automatically cover www.example.com unless it is listed.
  • Issuer: the certificate authority that signed it. Browsers trust a fixed set of public CAs; a self-signed certificate or one from an unknown CA triggers a warning.
  • Chain: the chain from your certificate up to a trusted root, via intermediate certificates. If the server does not send the intermediates, some visitors see an error even though your browser looks fine.
  • Key and signature: the key type and size, and the signature algorithm. Old algorithms such as SHA-1 are no longer trusted.

How long do SSL certificates last now?

Certificates are getting much shorter. The CA/Browser Forum voted in April 2025 to shorten publicly trusted TLS certificates in stages, as DigiCert explains. The current maximum is 398 days for certificates issued before 15 March 2026.

Certificates issuedMaximum validityDomain validation reuse
Before 15 March 2026398 days398 days
From 15 March 2026200 days200 days
From 15 March 2027100 days100 days
From 15 March 202947 days10 days

That schedule means manual renewal is no longer realistic: from 2029, a site will need a new certificate roughly every six weeks, and the CA's proof of domain control will be at most 10 days old at issuance. Automate renewal with ACME (the protocol behind Let's Encrypt and most hosting auto-renewal) and monitor expiry from the outside.

Certificate lifetimes are shrinking fast 398 daysbefore Mar 2026 200 daysfrom Mar 2026 100 daysfrom Mar 2027 47 daysfrom Mar 2029 Manual renewal will not keep up. Automate it. Source: CA/Browser Forum Ballot SC-081, adopted April 2025.
Maximum public TLS certificate validity, 2026 to 2029. Illustration by Cysoro.

What do common SSL certificate errors mean?

When a certificate check fails, the browser error usually tells you which of the five checks above failed.

ErrorWhat it meansFix
NET::ERR_CERT_DATE_INVALIDExpired or not-yet-valid certificateRenew the certificate; check the server clock
NET::ERR_CERT_COMMON_NAME_INVALIDDomain not in the SAN listReissue with the correct domains listed
NET::ERR_CERT_AUTHORITY_INVALIDIssuer not trusted, or self-signedUse a publicly trusted CA
Incomplete chainMissing intermediate certificateInstall the full chain bundle from your CA
Mixed contentPage loads some resources over HTTPUpdate links to HTTPS and check headers

If the warning is already showing, click "Not secure" in Chrome's address bar to reach the certificate details, or "Show Certificate" in Safari. If the end date is in the past, expiry is your problem. Also check your security headers while you are there with the free security headers checker.

How do you stop certificates expiring again?

Checking by hand works once, but it does not scale. Staying safe needs automation: renewal that happens on its own, alerts that arrive before expiry, and an inventory that covers every certificate you own.

  1. Automate renewal. Use ACME-based renewal through your host or certificate provider so certificates renew themselves before expiry.
  2. Monitor from the outside. Set up expiry alerts at 30, 14, and 7 days before expiry, checked from the public internet — not from inside your network.
  3. Keep an inventory. List every certificate you own, including subdomains, internal services, and certificates held by suppliers. Our guide to what an attack surface is explains why forgotten subdomains are a risk.
  4. Test after renewal. After every renewal, check the live site with an online checker and confirm the chain is complete.
  5. Plan for 47 days. With lifetimes shrinking, build renewal automation now rather than in 2029.

The bottom line

Checking an SSL certificate is quick: ten seconds in a browser, one command with OpenSSL, or thirty seconds with an online checker. The habit that matters is checking before expiry, not after a warning — and automating renewal so the date stops being a risk at all.

Start by checking your own site right now with the free SSL checker. If it shows fewer than 30 days left, renew today, then set up monitoring so you never have to scramble again.

Frequently asked questions

How do I check an SSL certificate in Chrome?

Open the site, click the icon to the left of the address bar, choose Connection is secure, then Certificate is valid. Under Validity Period, Expires On is the expiry date. The General tab also shows who the certificate was issued to and by whom.

How do I check an SSL certificate from the command line?

Run openssl s_client -connect example.com:443 -servername example.com and pipe the output to openssl x509 -noout -enddate. The notAfter line is the exact moment the certificate stops being trusted.

What does notAfter mean on a certificate?

notAfter is the end of the certificate's validity period. After that date and time, browsers no longer trust the certificate and show a full-page security warning instead of the site.

How long are SSL certificates valid now?

Publicly trusted certificates issued from 15 March 2026 last at most 200 days. The maximum drops to 100 days in March 2027 and to 47 days in March 2029 under the CA/Browser Forum schedule.

Why does Chrome say my certificate is not secure when it has not expired?

Common causes are a domain name that is not in the certificate's Subject Alternative Name list, a missing intermediate certificate in the chain, a certificate from an untrusted issuer, or the wrong date and time on the visitor's device.

Can I check an SSL certificate without visiting the site?

Yes. Use an online SSL checker, which connects to the server from the public internet, or use openssl from a terminal. Both show the expiry date, issuer, and chain without opening the site in a browser.

What should I do if my SSL certificate has expired?

Renew it immediately through your certificate provider or hosting control panel, install the new certificate, and test the site from a clean browser. Then set up expiry alerts or automated renewal so it does not happen again.

Sources

  1. DigiCert — TLS Certificate Lifetimes Will Officially Reduce to 47 Days
  2. Entero — How to Check a Website's SSL Certificate
  3. SSL Studio — How to check when an SSL certificate expires
  4. Harshil Barot — How to Check SSL Certificate Expiration Date
  5. SecureSiteReady — SSL Certificate Expired? How to Check and Fix It
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the CA/Browser Forum certificate lifetime schedule and browser certificate viewer documentation.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free