iOS: config profile for mobile device management

后端 未结 2 861
無奈伤痛
無奈伤痛 2021-01-30 11:53

I am able to create and install(in iOS devices) general mobileconfig profile generated by iPhone configuration utility(IPCU) v3.5(289) in Mac OS 10.6.8.

But when I am ge

2条回答
  •  生来不讨喜
    2021-01-30 12:35

    While generate self-signed ssl certificate in server side,generate identity.p12 certificate and this certificate you need to use in identity section of IPCU.

    These few lines you can use to generate the 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
    

提交回复
热议问题