我正在尝试使用Apple MDMfunctionconfigurationiOS设备进行pipe理。 使用iPhoneconfiguration实用程序,我试图创build一个configuration文件。 在“移动设备pipe理”部分下,我可以设置除“身份”条目之外的所有内容,而“身份”条目始终仅显示“在凭据有效内容中添加凭据”。
根据身份字段的iPhoneconfiguration实用程序文档 :
select设备用于向MDM服务器标识自己的证书。 使用凭证设置将证书添加到设备,或使用SCEP设置为设备提供使用SCEP获取证书的说明。
我没有SCEP服务器,所以我正在尝试使用证书。 但是,我无法弄清楚如何生成一个有效的证书。 无论将哪个证书添加到“凭据”设置,都无法在“身份”字段中进行select。
当我尝试安装没有任何身份证书集的configuration文件时,出现“configuration文件无法安装”的错误,控制台显示错误“找不到com.test.test.mdm1的身份证书”。
是否有人使用此系统成功地为MDMconfiguration了一个设备?
如果您使用的是自签名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
并通过这一点也。
你确定你不只需要签署证书?