Trust Cert using security with sudo shows a pop up window

user-kgvShFwdkY
New Contributor II

Hi Folks,

Mac OS: Big Sur

I am trying to push an App which trusts a certificate using a post install script, using JAMF.

I have added the following line so users don't get the pop window to manually validate trust settings, also these users don't have root privileges

sudo security -v add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "./BG_SEProxy_CA.cer"

Even with the below command, I still get the pop up window, is there a way to avoid having the pop up notification for users

0a13f7965df7461d8b7d1a77e26707f5

2 REPLIES 2

sdagley
Honored Contributor II

@user-kgvShFwdkY Deploy your certificate(s) via a Configuration Profile. Setting the trust on a scripted certificate install is no longer possible without user authentication on Big Sur. That restriction does not apply to certificates installed via Configuration Profile from Jamf Pro.

jquayle
New Contributor

Having the same issue here. Can you elaborate on how you set this up via a configuration profile? I'm only finding support for x.509 certificates.