Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Check SSL Certificate: How to Verify Any Site

· 7 min read · Home Tech

In this article
  1. What an SSL Certificate Actually Does
  2. How to Check a Certificate in Your Browser
  3. What to Look For in the Certificate Details
  4. Common Problems and How to Spot Them
  5. How to Check a Certificate from the Command Line
  6. Why a Padlock Isn't Enough
  7. How to Choose a Certificate for Your Own Site
  8. Frequently Asked Questions

To check an SSL certificate, click the padlock icon in your browser's address bar and select "Connection is secure" or "Certificate," then review the details. This article explains how to verify any site's certificate, what to look for, and how to avoid common mistakes.

What an SSL Certificate Actually Does

An SSL (Secure Sockets Layer) certificate, now almost always TLS (Transport Layer Security), does two things: it encrypts data between your browser and the server, and it proves the server is who it claims to be. When you visit a site with a valid certificate, your browser and the server perform a "handshake" that establishes an encrypted connection. This prevents eavesdropping and tampering, and it confirms you're talking to the real site, not an impostor.

The certificate itself contains the domain name it covers, the organization's name (if it's an Extended Validation cert), the issuing Certificate Authority (CA), the validity period, and the public key. Your browser trusts the certificate because it chains back to a root CA that's pre-installed in your operating system or browser.

How to Check a Certificate in Your Browser

Every major browser offers a way to inspect the certificate, but the steps differ slightly. Here's how to do it in the most common ones:

  • Chrome: Click the padlock (or "Not secure") icon in the address bar, then click "Connection is secure" (or "Certificate is valid"), then "Certificate is valid" to see details. On mobile, tap the padlock and look for "Certificate."
  • Firefox: Click the padlock, then "Connection secure," then "More information," then "View Certificate."
  • Safari: Click the padlock, then "Show Certificate." You may need to expand the details.
  • Edge: Same as Chrome—click the padlock, then "Connection is secure," then the certificate icon.

Once the certificate viewer opens, look for three things: the validity period (is today within the start and end dates?), the domain name (does it match the site you're on?), and the issuer (is it a known CA like Let's Encrypt, DigiCert, or GlobalSign?). If any of these look wrong, leave the site.

What to Look For in the Certificate Details

When you open the certificate, you'll see a lot of technical fields. Here are the ones that matter:

  • Subject: This is the domain name the certificate is issued to. It should exactly match the site's URL (e.g., example.com or www.example.com). If it says example.net but you're on example.com, that's a red flag.
  • Issuer: The Certificate Authority that signed it. You can usually click to view the certificate chain. If the issuer is "Unknown" or self-signed, the connection is not trustworthy.
  • Validity: The start and end dates. A certificate that's expired or not yet valid will cause a warning. Most certificates last 90 days to a year.
  • Key Usage and Extended Key Usage: These specify what the certificate is allowed to do (e.g., server authentication). If these are missing, the certificate might be misused.
  • Fingerprint: A unique hash of the certificate. You can compare this with the one published by the site owner (rarely needed for casual checks).

Common Problems and How to Spot Them

Even a valid-looking certificate can hide issues. Here are the most frequent problems:

  • Expired certificate: The most common. Browsers show a full-page warning for expired certs. Never click through it—the site's security is no longer guaranteed.
  • Domain mismatch: The certificate is valid but for a different domain. This happens with misconfigured servers and is a sign of a possible phishing attack.
  • Self-signed certificate: The site is its own CA. This is common for internal tools or testing, but for a public site it means no third party has verified the identity. Browsers will warn you.
  • Mixed content: The page loads over HTTPS, but some resources (images, scripts) load over HTTP. This weakens encryption and can be exploited. Check the padlock—if it's gray or shows a warning, there's mixed content.
  • Revoked certificate: A certificate can be revoked if the private key was compromised. Browsers check revocation via OCSP or CRL, but not always reliably. You can manually check via tools like SSL Labs.

How to Check a Certificate from the Command Line

If you need to verify a certificate programmatically or on a server, you can use openssl. Here's a basic command to view the certificate of a site:

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

This prints the certificate chain and details. To see just the certificate in human-readable form, pipe it to openssl x509 -text -noout. For example:

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

This shows the subject, issuer, and validity dates. Another useful tool is curl -vI https://example.com which shows the certificate details during the TLS handshake. For a more thorough analysis, online tools like SSL Labs' SSL Server Test (free) check for chain issues, weak ciphers, and protocol support.

Why a Padlock Isn't Enough

A green padlock only means the connection is encrypted and the certificate is technically valid. It does not mean the site is trustworthy. Phishing sites can get free certificates from Let's Encrypt in minutes. The padlock is a necessary but insufficient condition for safety. Always check the domain name in the address bar, and be wary of sites that ask for sensitive information if you arrived via an unexpected link.

Also, note that in modern browsers, the padlock icon is being replaced by a "tune" icon (Chrome) or just a plain indicator. The absence of a warning is what matters, not the presence of a padlock.

How to Choose a Certificate for Your Own Site

If you're setting up a website, you'll need to choose a certificate. Here are the main types:

  • Domain Validation (DV): The CA only verifies you control the domain. This is the cheapest (often free via Let's Encrypt) and fastest. Suitable for most sites.
  • Organization Validation (OV): The CA verifies your organization's legal existence. This shows your company name in the certificate. More expensive and slower.
  • Extended Validation (EV): The highest level, requiring extensive vetting. Historically showed a green address bar with your company name. Now less prominent, but still provides a higher assurance identity.

For most personal sites, a DV certificate from Let's Encrypt is perfectly fine. For e-commerce or corporate sites, OV or EV may build more customer trust, though the visible difference is shrinking. Also consider wildcard certificates (covers all subdomains) and multi-domain certificates (SAN) if you have multiple domains.

When choosing a CA, consider their reputation, support, and price. Let's Encrypt is free and automated, but requires renewal every 90 days. Paid CAs often offer longer validity (up to 397 days) and support. Always use a CA that is trusted by all major browsers.

Frequently Asked Questions

How do I check if a website has an SSL certificate?

Look at the URL bar. If it starts with https://, the site has a certificate. You can also click the padlock icon to see the certificate details. If the site is http://, it has no encryption.

What does "Your connection is not private" mean?

This warning appears when the certificate is invalid, expired, or the domain doesn't match. It means your browser cannot verify the site's identity or the connection isn't encrypted. Do not proceed unless you're absolutely sure the site is safe (e.g., a known internal tool).

Can a website have a valid SSL certificate but still be malicious?

Yes. SSL only encrypts the connection and verifies the domain. It doesn't vouch for the site's content. Phishing sites regularly use free certificates. Always check the domain and be cautious about entering personal information.

How often do SSL certificates expire?

Most certificates are valid for 90 days (Let's Encrypt) to 397 days (maximum allowed by browsers). After that, they must be renewed. You can check the expiry date in the certificate details.

What is a self-signed certificate and should I trust it?

A self-signed certificate is one where the site owner is their own CA. It's common for internal testing or private servers. Browsers will warn you because there's no third-party verification. Only trust it if you know the site's operator and can verify the fingerprint out-of-band.

How do I check an SSL certificate on a mobile device?

In most mobile browsers, tap the padlock icon (or the "i" in a circle in Safari) to see connection details. On iOS, tap the "i" then "Certificate." On Android Chrome, tap the padlock then "Details." The process is similar to desktop.