Signing your shell script for macOS
Core requires you to sign your shell scripts using the MobileIron script signing tool.
Before you begin
Testing your shell script for macOS
Procedure
- Download the signing tool provided to you by MobileIron, and place it in your $PATH.
- Open a terminal window.
-
Sign your script by issuing a command with the following syntax:
sign -s “My Signer” -r yes script_name.sh
“My Signer” is the signing identity you created in Creating certificates for your shell scripts for macOS
-r yes is an optional parameter. Include it only if you want to run the script as root because the script requires root permissions. Without -r yes, the script runs as the device user. This parameter is supported with Mobile@Work 1.1.0 for macOS through the most recently released version as supported by MobileIron.
script_name is the name of your macOS script.
The script signing tool produces a signed script called script_name.sh.p7s, where script_name is the name of the script.