在尝试将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注册后尝试在IOS设备上安装MDM有效负载的时候。
这是我发送的有效负载
<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>
答案 0 :(得分:4)
如果您正在使用自签名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
答案 1 :(得分:1)
您必须发送带有效负载的身份证书,以便设备接受配置文件。需要将此证书的PayloadUUID设置为MDM dict中IdentityCertificateUUID的值。
尝试使用iPCU创建配置文件以检查凭据块的格式。