Home > sys admin > Checking expiration date for an SSL cert

Checking expiration date for an SSL cert

December 29th, 2008

Here is you how you check whether an SSL cert is valid and hasn’t yet expired

1. Retrieve the certificate.

$ echo "" | openssl s_client -connect server:443 > certificate

2. Check the expiration date of the certificate.

$ openssl x509 -in certificate -noout -enddate

Or you can use ssl-cert-check or check-expire

sys admin

  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.