Hi Hello I need install a certificate on the keychain System & Keychain Login,for that i created a script & package for this, the package copy localy on the mac the certificate and the script install the certificate on keychain.
My script :
!/bin/bash
sudo security add-trusted-cert -d -r unspecified -k ~/Library/Keychains/login.keychain "/path/etc/certificat CA1.cer"
sudo security add-trusted-cert -d -r unspecified -k /Library/Keychains/System.keychain "/path/etc/certificat CA1.cer"
For the System Keychain is ok but not for the login keychain.
When i publish this policy on the self service, i don't have problems the certificate is installed on the 2 keychain ( Login & system )
Cordially
Malik
