How to Install/Push a Trusted Root Certificate in MAC OS X

Need to install a Root Certificate in MAC OS X

download http://:/Uploads/da1a643669efc11150162a58e59a844f9791c58c/newcer.tmp
continue if {(size of it = 1118 AND sha1 of it = “da1a643669efc11150162a58e59a844f9791c58c”) of file “newcer.tmp” of folder “__Download”}

extract newcer.tmp

if {not active of action OR exists file whose (name of it ends with “.tmp”) of folder “__Download” of client folder of current site}
delete "{pathname of file whose (name of it ends with “.tmp”) of folder “__Download” of client folder of current site}"
wait /usr/bin/security add-trusted-cert -d -r trustRoot -k “/Library/Keychains/System.keychain” "{posix path of client folder of current site}/__Download/new.cer"
endif

It’s working… now need a relevance condition to check the certificate status in MAC devices, whether it’s installed or not.