LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   Can I retrieve certificate expiry date from an openssl certificate (command line) (http://www.linuxquestions.org/questions/linux-security-4/can-i-retrieve-certificate-expiry-date-from-an-openssl-certificate-command-line-466246/)

davee 07-21-2006 10:07 AM

Can I retrieve certificate expiry date from an openssl certificate (command line)
 
I'm trying to set up a monitor of our external web sites to warn me of certificate expiry. Can I use openssl to extract the expiry date from the cert or keyring file? The man page doesn't give a lot away...

davee 07-21-2006 10:28 AM

Found it!

/usr/local/ssl/bin/openssl x509 -noout -in <certificate> -dates


All times are GMT -5. The time now is 02:43 AM.