2012-04-02 103 views
4

我能夠在Mac OS 10.6.8中創建並安裝(在iOS設備中)由iPhone配置實用程序(IPCU)v3.5(289)生成的常規mobileconfig配置文件。iOS:用於移動設備管理的配置文件

但是,當我爲移動設備管理生成配置文件時,無法將其安裝到iOS設備中。

我想知道設置我應該使用的證書的身份。 我有iOS開發人員帳戶和iOS企業帳戶。所以我可以創建所需的證書。

對於身份部分我也嘗試過使用SCEP,但沒有運氣,所以我想在證書中使用所需的證書。

如果有人有任何示例mdm配置文件,請分享它。任何幫助將不勝感激。

回答

2

雖然在服務器端生成自簽名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 
+0

能否請您解釋第三OpenSSL的命令如何讓這些「-CA cacert.crt -CAkey cakey.key -CAcreateserial」幾行。 – Imran 2014-11-20 02:32:03

1

您可以使用新證書作爲身份證書 - 它不一定是來自任一開發者帳戶的證書。上傳證書(p12格式)作爲新的「證書」,然後在iPCU中爲MDM有效載荷選擇此證書。