Anyone gotta quick and dirty way to collect a list of certificates from the System Keychain using a script / EA?
Solved
Ext. Attribute To List Certificates

Best answer by davidacland
Nothing complete unfortunately. The security command-line tool can be trickier than it first appears!
You can get the info with security find-certificate -a /Library/Keychains/System.keychain
but it will take a bit of cleaning up to make it useful.
Something like this seems to work: security find-certificate -a /Library/Keychains/System.keychain | grep "alis" | sed 's/"//g' | sed 's/ alis<blob>=//g'
Or in EA format:
certs=$(security find-certificate -a /Library/Keychains/System.keychain | grep "alis" | sed 's/"//g' | sed 's/ alis<blob>=//g')
echo "<result>$certs</result>"
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.