DEV Community

Bob Matcuk
Bob Matcuk

Posted on

Examine SSL Cert

Need to check when your SSL cert will expire?

openssl s_client -connect $SERVER:$PORT -servername $SERVER 2>/dev/null | openssl x509 -noout -dates
Enter fullscreen mode Exit fullscreen mode

$PORT will likely be 443 - -servername is required if the server is hosting multiple websites.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more