1.購買SSL證書驗證(跟https認證一樣)
2.iphone 簽名.mobileconfig文件
- company.mobileconfig 未簽名的mobileconfig文件
- server.crt 你的服務器SSL證書
- server.key 您的私鑰
- ca-bundle.crt 你的根證書鏈
- signed.mobileconfig 簽名過的mobileconfig名字
3.終端簽名命令
openssl smime -sign -in company.mobileconfig -out signed.mobileconfig -signer server.crt -inkey server.key -certfile ca-bundle.crt -outform der -nodetach
openssl證書簽發生成
生成私鑰 openssl genrsa -out server.key 2048 通過私鑰 生成csr文件 openssl req -new -key server.key -out server.csr 通過csr文件 和私鑰生成 crt公鑰 有效期10年 openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt