LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   find expiry date of SSLcertificate (https://www.linuxquestions.org/questions/programming-9/find-expiry-date-of-sslcertificate-904179/)

sunilsagar 09-21-2011 05:18 AM

find expiry date of SSLcertificate
 
Is it possible to find the expiry date of SSL certificate using any command.
Later I will compare with current date and will send mail to user 60 days before the expiry date.

Any suggestion.

.. Thanks
Sunil

bathory 09-21-2011 06:25 AM

Hi,

You can use:
Code:

openssl x509 -noout -dates -in /path/to/certificate.crt
Regards


All times are GMT -5. The time now is 02:41 PM.