Unable to Sign .mobileconfig File

MatWol
New Contributor

Hello,

I am attempting to set a date & time format from a configuration profile.

For this, I located the com.apple.menuextra.clock.plist, copied this onto my desktop, then I opened it with Xcode, found the key I needed, changed the string value and successfully saved.

I then used mcxToProfile to convert the .plist to a .mobileconfig file.

Unfortunately the profile didn't work once installed on my test machine, I had also restarted it.

I had compared my .mobileconfig with one that was working and could not see any irregularities.

I had wondered whether this was because the profile had not been signed so I am now trying to sign the custom profile using the following command:

/usr/bin/security cms -S -N "[Signing Certificate]" -i "[input]" -o "[output]"

I keep getting this error:

-bash: syntax error near unexpected token `('

My certificate has a bracket in the name, however the entire name is in quotation marks. I checked online for substitutions and solutions, but none have worked.

My certificate is showing the exact name that I am providing when running this command:

/usr/bin/security find-identity -p codesigning -v

I originally generated the certificate from Xcode.

This is my first time scripting and creating mobileconfig files, any help would be greatly appreciated.

macOS: Mojave (10.14.6)
Xcode: 11.3.1

0 REPLIES 0