Set Trust settings in keychain on Mac OS 10.13.6

KyleEricson
Valued Contributor II

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

Read My Blog: https://www.ericsontech.com
3 REPLIES 3

ryan_ball
Valued Contributor

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

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
Valued Contributor II

The cert is auto-created via Company Portal.

Read My Blog: https://www.ericsontech.com

alexjdale
Valued Contributor III

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