Article 14 of 86Domain guide

How to Check an SSL Certificate and Expiry Date (3 Ways)

Check any SSL certificate and expiry date from the browser, a free checker, or the command line. What each field means.

8 min read86 articles in the journal

An expired SSL certificate breaks your website without warning. The instant the expiration timestamp passes, web browsers block visitor access with full-screen security interstitials that destroy organic traffic, trigger customer panic, and halt ecommerce transactions.

Whether you manage your own domain or want to verify the encryption health of a third-party website, checking an SSL certificate takes only a few seconds. In this tutorial, we demonstrate three reliable methods to inspect any certificate: directly through your desktop browser, using an online automated diagnostic tool, and via the command line with OpenSSL. We also break down what each certificate field means and outline how to prevent unexpected expirations.

The short answer: three ways to check an SSL certificate

Quick Summary

You can check any SSL certificate in three ways: click the tune icon or padlock next to the URL in your web browser, enter the domain into an online SSL diagnostic tool, or run a single OpenSSL command in your terminal. All three reveal the certificate issuer, active cipher, and exact expiration timestamp.

Method 1: Inspect the certificate directly in your browser

Every modern desktop web browser provides built-in tools to view the cryptographic certificate currently serving the page:

Google Chrome and Microsoft Edge

1. Click the tune icon (the two horizontal sliders) located to the immediate left of the URL in the address bar.

2. Click Connection is secure.

3. Click Certificate is valid. A modal window will appear displaying the Certificate Authority, validity dates, and cryptographic key details.

Mozilla Firefox

1. Click the padlock icon on the left side of the address bar.

2. Click Connection secure, then select More information.

3. In the Page Info dialog, click View Certificate to open a full browser tab showing the Subject Alternative Names and root authority chain.

Apple Safari (macOS)

1. Click the padlock icon in the smart search field.

2. Click Show Certificate to inspect the trust chain and validity dates directly within macOS Keychain.

Method 2: Use an online SSL certificate checker

While browsers only inspect the certificate served to your specific computer, an online scanner connects to the remote server from an independent external node. This reveals intermediate chain errors, server SNI misconfigurations, and DNS resolution issues that your local browser might mask.

Test Any Domain with DomainRecon

Use our free diagnostic scanner to inspect any domain:

Instant Diagnostic Tool

SSL Certificate Checker

Simply enter any domain name (such as example.com). The tool connects over port 443, queries the server handshake, calculates the exact days remaining until expiration, confirms whether the certificate authority is trusted, and checks for common name mismatches.

Method 3: Check via the command line using OpenSSL

Software engineers, system administrators, and DevOps teams can check SSL validity programmatically using the OpenSSL command-line client built into Linux, macOS, and Windows WSL.

View Expiration Date Only

Run this command in your terminal to output the exact expiration timestamp:

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

Sample output: notAfter=Nov 21 12:00:00 2026 GMT

Inspect Issuer and Subject Names

Run this command to inspect who issued the certificate and all covered domains:

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

Reading the results: what each certificate field means

When examining raw SSL certificate data, look for these five key technical fields:

1. Common Name (CN) and Subject Alternative Names (SAN)

The exact domain names and hostnames the certificate is legally authorized to secure. Modern browsers strictly check the SAN list; if you access a subdomain not explicitly listed here, a name mismatch error will trigger.

2. Issuer (Certificate Authority)

The cryptographic organization that verified the domain and digitally signed the certificate (such as Let Encrypt, DigiCert, or Google Trust Services).

3. Validity Period (Not Before / Not After)

The timestamps defining the operational lifetime of the certificate. The “Not After” date is the critical deadline, because once that second passes, all modern browsers halt connections.

4. Certificate Chain

The hierarchy connecting your leaf domain certificate back through intermediate certificates to a root Certificate Authority pre-installed in the operating system.

5. Signature Algorithm and Key Size

The cryptographic formula used to encrypt data, typically SHA-256 with RSA 2048-bit or ECDSA with P-256 keys.

What to do if your certificate is close to expiration

If your SSL check reveals that your certificate expires in fewer than thirty days, take proactive action immediately:

  • [✓]Verify Auto-Renewal Daemons: If you use Let Encrypt or cPanel AutoSSL, certificates typically renew 30 days before expiration. If less than 20 days remain, log into your hosting panel to inspect cron job logs or trigger a manual renewal.
  • [✓]Check DNS Record Pointing: Automated ACME renewal bots fail if your domain DNS records recently changed or if firewalls block port 80. Ensure HTTP challenges can reach your web server.
  • [✓]Set Calendar Monitoring Reminders: If your organization uses manual commercial certificates, schedule automated calendar reminders 45 and 15 days ahead of expiration.

Certificates and domain registration: check domain expiry too

Remember that an SSL certificate is intimately tied to your underlying domain name registration. If your domain name registration lapses with your registrar, your DNS records stop resolving, your automated SSL renewals fail immediately, and malicious third parties could register your expired domain.

Whenever you inspect your website SSL certificate, perform a companion check on your domain registration expiration date using our Domain Expiry Checker.

Common SSL inspection failures to watch for

When analyzing websites, watch out for these two subtle certificate failures:

Missing Intermediate Certificate (Incomplete Chain)

The server sends the primary domain certificate but forgets the intermediate bundle. Desktop browsers may cache the authority, but mobile devices will throw security warnings.

Common Name Mismatch

The certificate is completely valid, but does not include the exact subdomain or www prefix requested by the visitor. For step-by-step remediation, read How to Fix Your Connection Is Not Private.

Frequently asked questions & conclusion

How often should I check my website SSL certificate?

You should inspect your certificate at least once a month, or use an automated uptime and SSL monitoring service that notifies you thirty days prior to expiration.

Why do Let Encrypt certificates only last 90 days?

Short 90-day lifespans encourage automated renewals, reduce cryptographic exposure if private keys leak, and align with modern security best practices.

Can I check an SSL certificate on a local staging server?

Yes. You can use OpenSSL in your terminal to connect to local IP addresses or custom ports (such as port 8443) before pointing public DNS records.

Checking your SSL certificate and verifying its expiration date is one of the easiest maintenance tasks in website operations. Regular audits prevent disastrous browser warning pages, protect user data, and ensure uninterrupted business uptime.

To dive deeper into web encryption and hosting security, explore our companion guides on What Is an SSL Certificate? How It Works and Why Browsers Warn Not Secure, Free vs Paid SSL Certificates: What Is the Difference?, and How to Fix Your Connection Is Not Private.

Put this guide to work

Check a domain before you commit.

Free availability, WHOIS, DNS, SSL, subdomain, and email checks in one place.

Check availability