I'm trying to retrieve the certificate expiration date an application using the codesign command line tool, but I cannot seem to find the date that the certificate will expire. Any ideas?
In Safari and Chrome on Mac OSIn the list of Keychains, click login. Click My Certificates under Category in the lower left-hand corner of the sidebar. There should be a certificate under your name listed. The expiration date should be listed to the right.
Use codesign to extract the certificates to the current directory:
codesign --display --extract-certificates /Applications/Example.app
You can then use Quick Look to view them:
qlmanage -c public.x509-certificate -p codesign*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With