Home > aws, linux, network, SSL certificate, Web > how to check the expiry of your certificate at linux

how to check the expiry of your certificate at linux

i updated my old SSL certificate with newer one. now need to know what is the expiry date of this certificate. 

lets see how to check expiry date of SSL certificate.

suppose you even don't know the path to certificate. 

# grep -r "^SSLCertificateFile" /etc/httpd/conf*

this output will tell you the path to your certificate file (in my case /etc/pki/tls/certs/mycertificate.file.crt)

# cd /etc/pki/tls/certs (or the path you found above)
# openssl x509 -in mycertificate.file.crt -noout -enddate

output might be like this 
notAfter=May 16 07:43:06 2015 GMT
Advertisements
Categories: aws, linux, network, SSL certificate, Web
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: