Setting certificate trust

jarednichols
Honored Contributor

Hi-

Does anyone know a scriptable way to set certificate trust level? I'm automating the installation of our root CA onto managed macs and can successfully install them, I now just need to set trust level. I don't see a way to do it with certtool on the command line.

Thanks

j
---
Jared F. Nichols
Desktop Engineer, Infrastructure and Operations
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436

2 REPLIES 2

rmanly
Contributor III

/usr/bin/security will add a trusted cert to the keychain. I used it when deploying MSN Messenger a few years ago when it was still hard-coded to look in the X509Anchors keychain. *pita*

You can see an example of how that would work on the last line of JAMF's importCAcert.sh script.

https://jamfnation.jamfsoftware.com/viewProductFile.html?id=135&fid=459

jarednichols
Honored Contributor

Holy cow this is an old post. Yeah I figured this out years ago.