Home >Blog

How to Check an SSL Certificate on a Server: 4 Methods

Published Updated

Why Bother Checking?

Certificates expire. Domains change. SAN entries get dropped during renewal. Knowing how to look at what's actually installed on your server saves you from those 3 AM outage alerts.

Method 1: Browser Developer Tools

The quickest way for a single site. Click the padlock icon in the address bar, then navigate to the certificate details. You'll see the issuer, validity period, and SAN list right there. Not great for automation, but perfect for a quick sanity check.

Method 2: OpenSSL s_client

This is the one I use most. From any terminal:

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

It shows you exactly what the server presents, including the certificate chain. The -servername flag matters for virtual hosts — without it you might get the default certificate instead of the one you're asking about.

Method 3: curl -v

If you just need to verify the connection works and see the handshake, curl -vI https://example.com gives you the TLS info along with the response headers. Less detail than OpenSSL, but faster when you're already in the terminal.

Method 4: Online Decoders

Paste your certificate PEM into an online decoder and you get a clean breakdown of every field — extensions, key usage, transparency logs. I use this when I need to share certificate details with someone who doesn't want to read raw PEM output.

What to Look For

Don't just check the expiry date. Verify the SAN covers all your subdomains, confirm the issuer matches what you expect, and make sure the chain is complete (browsers are forgiving here, but some clients aren't).

Table of Contents

Information

  • Hits30
  • Published date2026/09/25

More Posts

Explore more articles from this section
How to Decode an SSL Certificate Online
Aug 24, 202698views

How to Decode an SSL Certificate Online

Learn how to decode an SSL certificate online by pasting PEM text or uploading a certificate, then review the ...

#ssl certificate#certificate decoder#PEM#TLS
X.509 Certificate Decoder: How to Read an X.509 Certificate
Sep 02, 202684views

X.509 Certificate Decoder: How to Read an X.509 Certificate

A practical guide to using SSL Certificate Decoder to inspect a public PEM certificate and understand its X.50...

#x509 certificate decoder#X.509 certificate#SSL certificate decoder#PEM
How to Decode a PEM Certificate Online with SSL Certificate Decoder
Aug 30, 202681views

How to Decode a PEM Certificate Online with SSL Certificate Decoder

Learn how PEM boundary markers work and how to decode a public PEM certificate by pasting it or uploading a PE...

#pem certificate decoder#PEM certificate#BEGIN CERTIFICATE#END CERTIFICATE
How to Read SSL Certificate Details: A Practical Guide to Subject, Issuer, CN, SAN, and Fingerprints
Aug 27, 202679views

How to Read SSL Certificate Details: A Practical Guide to Subject, Issuer, CN, SAN, and Fingerprints

Learn how to use SSL Certificate Decoder to inspect a public certificate and understand Subject, Issuer, Commo...

#SSL certificate#certificate details#Subject#Issuer
Fix "PEM Certificate Is Invalid" Error: Common Causes and Solutions
Sep 30, 202678views

Fix "PEM Certificate Is Invalid" Error: Common Causes and Solutions

Why PEM certificates fail to load, the five common causes, and the exact OpenSSL commands to fix each one.

#pem certificate invalid#openssl pem#fix pem error
When Parsing an SSL Certificate I Get 'PEM Certificate Is Invalid or Unrecognized' – What Does It Mean and How Do I Fix It?
Oct 11, 202670views

When Parsing an SSL Certificate I Get 'PEM Certificate Is Invalid or Unrecognized' – What Does It Mean and How Do I Fix It?

The parser could not find a valid PEM block. Nine times out of ten the file is fine and the copy is broken — m...

#pem certificate invalid#ssl certificate parse error#openssl x509#der vs pem
Feedback email