title: OSX: Export system certificates from keychain in PEM format programmatically
body: <p>How can I extract all root CA certificates from all the keychains on OSX programmatically in pem format?</p>
  
  <p>Keychain programming services should allow this but how?</p>
  
  <p>Any help would be appreciable.</p>