Category filter

Script to distribute certificate on macOS devices

Security certificates installed on the devices enable access to websites and other resources. Importing the certificates with the Terminal commands is an easy method to deploy certificates obtained from a Trusted Certificate Authority (CA). With Hexnode, you can remotely add the certificates hosted on your organization network to the macOS devices using the Execute Custom Script action.


The Sample Scripts provided below are adapted from third-party Open-Source sites.

Add certificate to the System Keychain


  • After the download, the user must change the certificate trust policy from the Keychain Access to establish trust and determine if the certificate is valid for specific uses.
  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository