iphone 簽名.mobileconfig文件 – HTTPS SSL 教程
company.mobileconfig 未簽名的mobileconfig文件
server.crt 你的服務(wù)器 SSL證書
server.key 您的私鑰
ca-bundle.crt 你的根證書鏈
signed.mobileconfig 簽名過(guò)的mobileconfig名字
簽名命令:
openssl smime -sign -in company.mobileconfig -out signed.mobileconfig -signer server.crt -inkey server.key -certfile ca-bundle.crt -outform der -nodetach
服務(wù)器設(shè)置:
apache 要添加MIME
AddType application/x-apple-aspen-config .mobileconfig
nginx 修改mime.types
application/x-apple-aspen-config .mobileconfig
服務(wù)器端開(kāi)發(fā) – PHP語(yǔ)言:
header('Content-type: application/x-apple-aspen-config; chatset=utf-8'); header('Content-Disposition: attachment; filename="company.mobileconfig"'); echo $mobileconfig;
全球可信CA機(jī)構(gòu)