Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Last active December 6, 2022 23:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nmcspadden/7c2eb78d6aba274f4ae5 to your computer and use it in GitHub Desktop.
Save nmcspadden/7c2eb78d6aba274f4ae5 to your computer and use it in GitHub Desktop.
Signs a folder full of profiles
#!/bin/bash
for profile in Profiles/*.mobileconfig
do
s=${profile##*/}
outName=${s%.*}
outName+="Signed.mobileconfig"
/usr/bin/security cms -S -N "Mac Developer Application" -i $profile -o "$outName"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment