Menu

1 / 2

SSL certs keep expiring unnoticed — so I built `cert-peek`

DEV Community·Mu Micro·6 months ago
#Xz9PBS7B
#devops#node#cli#devtools#cert
Reading 0:00
15s threshold

The problem

Developers and ops teams get blindsided by expired SSL certificates because checking expiry requires remembering a multi-flag openssl s_client command and parsing its dense output — so certs get forgotten until the site goes red.

If you've hit this before, you know how it goes — you Google the openssl command, squint at wall-of-text output, and compute the expiry date by hand. Or you just forget until monitoring fires.

As a solution, I created cert-peek

Check SSL certificate expiry and details for any domain in seconds from your terminal

It's zero-dependency Node.js, so you can run it immediately without installing anything:

npx cert-peek github.com

Enter fullscreen mode

Exit fullscreen mode

Output:

$ npx cert-peek github.com Domain: github.com Issuer: DigiCert Inc Valid from: 2025-03-12 Expires: 2026-03-12 Status: OK -- 303 days remaining

Enter fullscreen mode

Exit fullscreen mode

Check multiple domains at once:

npx cert-peek google.com stripe.com myproductionsite.com

Enter…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.