I am running into a brick wall getting a cert installed as trusted. I have looked all over the forum and have tried just about every script I could find but get the same result. Below is the Log output after I run the install and script.
Sending Wake On LAN command...
Opening SSH Connection to 10.119.xxx.xx...
Authenticating...
Successfully authenticated.
Verifying Computer's Identity...
The MAC Address has been verified.
Checking Operating System Version...
Running Mac OS X 10.12.1 (16B2657)
Verifying /usr/local/jamf/bin/jamf...
/usr/local/bin/jamf is (9.97.1488392992) not the current version (9.97.1482356336).
Verifying /usr/sbin/jamf...
/usr/sbin/jamf does not exist.
Downloading /usr/local/jamf/bin/jamf from JSS...
Moving jamf binary to /usr/local/jamf/bin/jamf...
Created the jamf binary directory /usr/local/jamf/bin.
Moving jamf binary to /usr/local/jamf/bin/jamf...
Moved the JAMF CLI Binary to /usr/local/jamf/bin/jamf.
Creating symlink /usr/local/bin/jamf...
Enabling /usr/local/jamf/bin/jamf...
Enabled the JAMF CLI Binary.
Verifying /Library/Preferences/com.jamfsoftware.jamf.plist...
Preparing Policy...
The management framework will be enforced as soon as all policies are done executing.
Executing Policy 2017-03-06 at 10:17 PM | dpalmer | 1 Computer
Mounting Casper Share
Verifying package integrity...
Copying ForcepointCloudCA.cer.pkg...
Installing ForcepointCloudCA.cer.pkg...
Successfully installed ForcepointCloudCA.cer.pkg.
Running script ForcepointCloudCA...
Script exit code: 0
Script result: Usage: add-trusted-cert [] [certFile]
-d Add to admin cert store; default is user
-r resultType resultType = trustRoot|trustAsRoot|deny|unspecified;
default is trustRoot
-p policy Specify policy constraint (ssl, smime, codeSign, IPSec, iChat,
basic, swUpdate, pkgSign, pkinitClient, pkinitServer, eap)
-a appPath Specify application constraint
-s policyString Specify policy-specific string
-e allowedError Specify allowed error (certExpired, hostnameMismatch) or integer
-u keyUsage Specify key usage, an integer
-k keychain Specify keychain to which cert is added
-i settingsFileIn Input trust settings file; default is user domain
-o settingsFileOut Output trust settings file; default is user domain
-D Add default setting instead of per-cert setting
certFile Certificate(s)
Add trusted certificate(s).
Submitting log to https://xxx12345.jamfcloud.com/
Finished.
This is the script I am using:
!/bin/sh
postflight
Not supported for flat packages.
pathToScript=$0
pathToPackage=$1
targetLocation=$2
targetVolume=$3
/usr/bin/security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /private/tmp/certs/ForcepointCloudCA.cer srm /private/tmp/certs/ForcepointCloudCA.cer
rm -rf "/private/tmp/certs"
exit 0 ## Success
exit 1 ## Failure
Any assistance is very much appreciated, I am on day 4 and just keep hitting the same wall continuously, I get the cert installed to the temp location but it will not go into the keychain as trusted.
Thanks in Advance.
