一、生成mobileconfig配置文件
1.打开iPhone配置实用工具 点击新建
2.在文件列表选中新建的mobileconfig配置文件后,会弹出一个操作菜单
3.填写通用信息,基本是必填的
4.如果只配置了通用项,那么此mobileconfig文件是打不开的,其他项至少配置一个
5.到此就配置完成了,导出之后就是一个mobileconfig文件
6.点击导出后会弹出是否为mobileconfig文件进行签名。此时如果选择进行签名,会默认使用系统根证书签名,也将会导致安装时显示未签名或未认证的红色标签
(所以此时应选择不签名,具体签名方法下面会介绍);


二、mobileconfig配置文件签名
下载ProfileSigner文件,其中包括profile_signer.py文件和README.md文件
1.签名mobileconfig
profile_signer.py与mobileconfig 放在同一目录,终端进入目录执行
./profile_signer.py -n "3rd Party Mac Developer Application" sign AcrobatPro.mobileconfig AcrobatProSigned.mobileconfig
2.加密mobileconfig
./profile_signer.py -n"3rd Party Mac Developer Application" encrypt AcrobatPro.mobileconfig AcrobatProEnc.mobileconfig
3.签名并且加密mobileconfig
./profile_signer.py -n"3rd Party Mac Developer Application" bothAcrobatPro.mobileconfig AcrobatProBoth.mobileconfig
AcrobatPro.mobileconfig 为未签名的文件
AcrobatProSigned.mobileconfig 为签名后的文件
AcrobatProEnc.mobileconfig 为加密后的文件
AcrobatProBoth.mobileconfig 为签名并加密后的文件
"3rd Party Mac Developer Application"为你的开发证书在钥匙串中的全名,选择证书=>显示简介=>复制常用名称加上引号即可,比如
"iPhoneDeveloper: jakey.shao xxxx@xxx.com"
"iPhoneDistribution: Skyfox Network Technology Co., Ltd."
网友评论