【发布时间】:2014-11-18 14:43:07
【问题描述】:
我现在正在本地服务器上在 iOS SDK 中进行 MDM 安装。我已经创建了 PEM 文件并将其安装在本地服务器上。然后我创建了配置文件使用 iPhone 配置实用程序并尝试在设备上安装。当我尝试在 iPhone 上安装配置文件时,我收到以下警报。
当我尝试在 mac 上安装相同的配置文件时,我会收到以下警报。
从问题我了解到 MDM 需要服务器的信任配置文件。我们如何为服务器生成 信任配置文件?
编辑 1:
我知道这可能是因为我在生成配置文件时在 iPCU 中使用了身份证书。我使用了以下 openssl 命令。
//Creating the device Identity key and certificate request
1. openssl genrsa 2048 > identity.key
2. openssl req -new -key identity.key -out identity.csr
//Signing the identity key with the CA.
//Give it a passphrase. You'll need to include that in the IPCU profile.
3. openssl x509 -req -days 365 -in identity.csr -CA cacert.crt -CAkey cakey.key -CAcreateserial -out identity.crt
4. openssl pkcs12 -export -out identity.p12 -inkey identity.key -in identity.crt -certfile cacert.crt
在 openssl 命令的第 3 步中,我没有得到我需要为 -CA cacert.crt -CAkey cakey.key -CAcreateserial 传递的内容我浏览了 CAcert web 并开始了解我需要为我的域生成一个我需要在这里使用的证书。我没有得到 cakey.key 和 -CAcreateserial 是。所以你能告诉我第 3 步在做什么吗?是否有必要从 CAcert 获得证书并传递其他命令。谢谢。
【问题讨论】: