Black Friday Sale is live: save up to 85% on Web & WordPress HostingView Deals
Step-by-Step TutorialSecurity & SSLBeginner

How to Check an SSL Certificate: Browser and CLI Inspection Methods

Overview

An SSL/TLS certificate enables encrypted HTTPS communication between a visitor’s web browser and your web server. Checking an SSL certificate allows you to verify that encryption is active, inspect which Certificate Authority (CA) issued the certificate, confirm which domain names are covered, and check the expiration date.

In this tutorial, you will learn how to inspect certificates using standard graphical web browsers as well as the command-line OpenSSL utility. Crucially, you will also learn what an active SSL certificate does, and does not, protect.


Method 1: Inspecting an SSL Certificate in Web Browsers

Modern browsers (Google Chrome, Mozilla Firefox, Microsoft Edge, and Apple Safari) include built-in certificate viewers:

1. Click the Browser Security / Tune Icon

In the browser address bar, locate the icon to the left of the website URL:

  • In Chrome and Edge, this is represented by the Tune / Site Settings icon (two sliders) or a padlock.
  • In Firefox and Safari, this is represented by the Padlock or Shield icon.

2. Open Connection Details

Click the icon, then select Connection is secure (or equivalent), followed by Certificate is valid.

3. Review Certificate Details

The certificate viewer displays critical information across three tabs:

  • Issued To / Common Name (CN): The primary domain name or wildcard identifier covered by the certificate.
  • Subject Alternative Names (SANs): The full list of additional hostnames protected (e.g. example.com, www.example.com, mail.example.com).
  • Issued By / Certificate Authority (CA): The organization that verified the domain and signed the certificate (e.g., Let’s Encrypt, Sectigo, DigiCert).
  • Validity Period: The exact start date and expiration date.

Method 2: Inspecting an SSL Certificate via OpenSSL (Command Line)

For developers, server administrators, and automated scripts, the openssl command-line tool inspects certificates directly without relying on browser caches:

1. View the Complete Certificate Handshake

Run the s_client command against port 443 with the Server Name Indication (SNI) flag -servername:

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

2. Extract Just the Expiration Dates

To view only the validity window without hundreds of lines of cryptographic handshake data, pipe the output into openssl x509:

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

Output example:

notBefore=Jan 15 00:00:00 2026 GMT
notAfter=Apr 15 23:59:59 2026 GMT
issuer=C = US, O = Let's Encrypt, CN = R10
subject=CN = example.com

Crucial Security Distinction: What SSL Does NOT Protect

A common misconception among website owners is that an active SSL certificate means their website is “100% secure” or “hack-proof.” It is vital to understand the boundary:

What SSL/TLS Protects

  • Encryption in Transit: Scrambles data sent between the visitor and the server (passwords, credit card numbers, personal data), preventing eavesdropping on public Wi-Fi or compromised network routes.
  • Data Integrity: Prevents third parties from tampering with data packets while in transit.
  • Domain Authentication: Verifies that the server responding cryptographically controls the domain name requested.

What SSL/TLS Does NOT Protect

  • Malware & Phishing: Malicious websites can easily obtain valid SSL certificates. Encryption does not verify the moral legitimacy of the site operator.
  • Vulnerable Application Code: An SSL certificate does not prevent SQL Injection, Cross-Site Scripting (XSS), or brute-force attacks on your WordPress admin login.
  • Outdated Plugins & Themes: Security holes in unpatched CMS software remain fully exploitable over HTTPS.
  • Server-Level Security: Weak server root passwords, misconfigured permissions, or unpatched operating systems are completely unaffected by SSL certificates.

For complete perimeter security, review our glossary guide on Web Application Firewalls (WAF) and explore our Infrastructure Security Standards.

Frequently Asked Questions

Does having an SSL padlock mean a website is completely safe and free from malware?

No. An SSL/TLS certificate encrypts data in transit between the visitor's browser and the web server. It does not inspect website source code, scan for malware, verify server plugin security, or guarantee the legitimate identity or ethics of the site operator.

Why do browsers show 'Your connection is not private'?

This error occurs when the SSL certificate has expired, does not match the requested domain name in its Subject Alternative Names (SAN), is self-signed, or is issued by an untrusted Certificate Authority.

How often do Let's Encrypt SSL certificates renew?

Let's Encrypt certificates are valid for 90 days. On Web Hosting Wale hosting platforms, automated renewal jobs attempt renewal every 60 days to prevent unexpected expiration.

Need Technical Assistance?

Web Hosting Wale support is available 24/7. Tickets are typically answered within 10-15 minutes.

Open Support TicketView All Support Channels