Skip to main content
Question

Set Trust settings in keychain on Mac OS 10.13.6

  • August 17, 2018
  • 3 replies
  • 121 views

KyleEricson
Forum|alt.badge.img+17

I want to allow this private key to be "Allow all application to access this item" can this be scripted?

3 replies

Forum|alt.badge.img+19
  • Contributor
  • August 17, 2018

https://stackoverflow.com/questions/14733764/mac-code-signing-bypass-the-keychain-access-private-key-prompt-from-terminal

You can configure this from the Terminal when you import the certificate into your Keychain. Import command: import inputfile [-k keychain] [-t type] [-f format] [-w] [-P passphrase] [options...] To set the access control to "Allow all applications to access this item", just add the flag "-A".

Of course the cert might be pushed via config already, but you can re-import using a package/temp location/postinstall method.


KyleEricson
Forum|alt.badge.img+17
  • Author
  • Valued Contributor
  • August 17, 2018

The cert is auto-created via Company Portal.


Forum|alt.badge.img+18
  • Contributor
  • August 17, 2018

This cannot be scripted, by design I believe. For security reasons.