company.mobileconfig未签名的mobileconfig文件
server.crt你的服务器SSL证书
server.key您的私钥
ca-bundle.crt你的根证书链
signed.mobileconfig签名过的mobileconfig名字
签名命令:
opensslsmime-sign-incompany.mobileconfig-outsigned.mobileconfig-signerserver.crt-inkeyserver.key-certfileca-bundle.crt-outformder-nodetach
服务器设置:
apache 要添加MIME
AddTypeapplication/x-apple-aspen-config.mobileconfig
nginx 修改mime.types
application/x-apple-aspen-config.mobileconfig
服务器端开发 – PHP语言:
header('Content-type:application/x-apple-aspen-config;chatset=utf-8'); header('Content-Disposition:attachment;filename="company.mobileconfig"'); echo$mobileconfig;
猜你喜欢