Guide

How to check an SSL certificate

When an SSL certificate expires or breaks, browsers don't quietly warn your visitors — they show a full-page "your connection is not private" error and most people leave. The good news: checking a certificate takes two minutes, and every serious problem shows up in the same handful of fields.

What you are actually checking

Method 1: your browser

  1. Open the site over HTTPS and click the padlock (or tune icon) in the address bar.
  2. Choose "Connection is secure," then "More information" or "Certificate details" — the exact labels vary between Chrome, Firefox, and Safari.
  3. Read the validity dates, the issuer, and the list of covered domain names.

This is the fastest sanity check there is. Its limit: the browser only shows you the certificate for the page you are on, and it hides most chain and protocol detail.

Method 2: one openssl command

For the full picture from any Mac or Linux terminal, ask the server for its certificate directly:

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

That prints:

notBefore=Sep  3 00:00:00 2026 GMT
notAfter=Dec  2 23:59:59 2026 GMT
issuer=C = US, O = Let's Encrypt, CN = R12
subject=CN = example.com
X509v3 Subject Alternative Name:
    DNS:example.com, DNS:www.example.com

A quicker variant: curl -vI https://example.com prints the certificate's dates and a "SSL certificate verify ok" line (or the exact reason verification failed) in the handshake output.

Method 3: get a grade

Dates and names are the basics; a full assessment also grades protocol versions, cipher strength, and known vulnerabilities (the Heartbleed and POODLE era attacks are still tested for). That is a bigger job than a terminal command — dedicated scanners probe the server dozens of ways and roll it up into a letter grade. An A or A+ is a healthy server. Anything at B or below usually traces back to an old protocol still enabled or a chain problem, both fixable in server config.

The automated way

For a fast fact check, the PapaCasper MCP Toolbelt's ssl_cert_checktool connects to a host and returns the expiry date, days remaining, issuer, and subject as JSON for $0.01 per call — handy inside an agent workflow or a monitoring script, with no signup or API key. When you want the full assessment,ssl_labs_grade ($0.10) returns the letter grade with protocol, cipher, chain, and vulnerability detail behind it.

Check a certificate now

Connect any MCP client to https://papacasper.com/mcp and callssl_cert_check — or browse the full catalog of 29 tools first.

Browse the MCP Toolbelt