gpt4 book ai didi

iphone - 找不到 com.xyz.profile.mdm 的身份证书?

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:32:54 26 4
gpt4 key购买 nike

我在尝试将 MDM 配置文件安装到 ipad 上作为 OTA 注册的最后一部分时遇到了这个问题。

NSError:
Desc : The identity certificate for com.xyz.profile.mdm1 could not be found.
US Desc: The identity certificate for com.xyz.profile.mdm1 could not be found.
Domain : MCMDMErrorDomain
Code : 12005
Type : MCFatalError
Params : (
"com.xyz.profile.mdm1"
)

有人知道我遗漏了什么信息吗?这是我在完成 SCEP 注册后尝试将 MDM 有效负载安装到 IOS 设备上的时候。

这是我要发送的负载

<dict>
<key>AccessRights</key>
<integer>2047</integer>
<key>CheckOutWhenRemoved</key>
<true/>
<key>IdentityCertificateUUID</key>
<string>00000000-0000-0000-0000-000000000000</string>
<key>PayloadDescription</key>
<string>Configures MobileDeviceManagement.</string>
<key>PayloadIdentifier</key>
<string>com.xyz.profile.mdm</string>
<key>PayloadOrganization</key>
<string></string>
<key>PayloadType</key>
<string>com.apple.mdm</string>
<key>PayloadUUID</key>
<string>3DF45C81-F1C4-4427-A61D-0581D9303214</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>ServerURL</key>
<string>https://mymachine:2345/profile</string>
<key>SignMessage</key>
<false/>
<key>Topic</key>
<string>com.apple.mgmt.xyz</string>
<key>UseDevelopmentAPNS</key>
<false/>
</dict>

最佳答案

如果您使用的是自签名 ssl,那么在服务器端生成自签名 ssl 证书时,会生成 identity.p12 证书,您需要在 IPCU 的身份部分使用该证书。

您可以使用这几行来生成 idendtity.p12

//Creating the device Identity key and certificate request

openssl genrsa 2048 > identity.key
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.

openssl x509 -req -days 365 -in identity.csr -CA cacert.crt -CAkey cakey.key -CAcreateserial -out identity.crt

openssl pkcs12 -export -out identity.p12 -inkey identity.key -in identity.crt -certfile cacert.crt

关于iphone - 找不到 com.xyz.profile.mdm 的身份证书?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9502420/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com