ITPub博客

首页 > IT基础架构 > 网络安全 > iphone 签名.mobileconfig文件 – HTTPS SSL 教程

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

原创 网络安全 作者:hdgara1 时间:2020-01-21 10:24:06 0 删除 编辑

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

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;

全球可信CA机构

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31483669/viewspace-2674174/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
数安时代(GDCA)是全球可信CA机构,可申请免费ssl证书,提供https证书,ev ssl证书,dv ssl证书,ov ssl证书,代码签名证书和PDF签名证书,以及一站式的ssl数字证书购买服务。

注册时间:2017-08-18

  • 博文量
    90
  • 访问量
    124270