How can I check the expiration date of a Certificate Keychain from terminal?

Hello, I am writing a bash script to alert me when my corporate certificates are about to expire. How can I check the expiration date of a certificate in keychain? I'm running Mac OS 10.6.8 on a newer MacBook pro with full admin rights.


Specifically I will be checking three certs: a Root Authority, Issuing Authority, and a user cert (Identity).


I was exploring the Security and Openssl command line tools. But I can't seem to get the info I need.


Any recommendations would be appreciated.


Thank you!

Posted on Jul 19, 2011 1:53 PM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I check the expiration date of a Certificate Keychain from terminal?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.