Use OpenSSL to determine TLS certificate expiration date

twitter logo github logo Updated on ・1 min read

My posts are usually notes and reference materials for myself, which I publish here with the hope that others might find them useful.

There really should be an s_client option to do this. In lieu of, use s_client to read the cert and pipe it to the x509 command.

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates
twitter logo DISCUSS
Classic DEV Post from Feb 5

Ship it like Honeybadger

If my friends and I built a successful company with no funding and just 3 people, you can ship your project too.

Benjamin Black profile image
Web developer / byproduct of stellar nucleosynthesis