I'm trying to write a script that will list all installed certificates in the keychain and compare them to the creation/expiration dates of certificates from the Apple dev portal.
I've looked at the documentation for security
( https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/security.1.html ) and openssl
, but I can't seem to pass a cert from one to the other.
The alternative is to use the Security.framework
directly, but I don't see any obvious method for dumping the creation/expiry dates for certificates.
Any guidance?
security find-certificate
, where it dumps the the values you can see on the command line. No dates. – Technocracy