首页域名资讯 正文

iphone 签名.mobileconfig文件 – HTTPS SSL 教程

2025-01-23 1 0条评论

company.mobileconfig 未签名的mobileconfig文件

server.crt 你的服务器 ssl 证书

server.key 您的私钥

ca-bundle.crt 你的根证书链

signed.mobileconfig 签名过的mobileconfig名字

签名命令:

openssl smime -sign -in company.mobileconfig -out signed.mobileconfig -signer server.crt -inkey server.key -certfile ca-bundle.crt -outform der -nodetach

服务器设置:

apache 要添加MIME

AddType application/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;

 

 

文章版权及转载声明

本文作者:亿网 网址:https://edns.com/ask/post/150022.html 发布于 2025-01-23
文章转载或复制请以超链接形式并注明出处。