Insert pkcs12 to mobileconfig file
Clash Royale CLAN TAG #URR8PPP Insert pkcs12 to mobileconfig file How do I insert a .p12 file in a .mobileconfig file ? .p12 .mobileconfig Apple configuration utility currently performs some unknown transformation/encoding on the .p12 file while inserting it in .mobileconfig (It is just an XML file). .mobileconfig I want to create this .mobileconfig file without using the Apple iPhone configuration utility by directly creating an XML file. Thanks 5 Answers 5 One way to accomplish this is base64 encoding the PKCS#12 file. This, for instance, works with PHP openssl_pkcs12_export( $strCertPEM, $strCertPkcs12, $resKey, $strCertPW ); $arrCertBase64 = str_split( base64_encode($strCertPkcs12), 52); $xmlUserCertPlist = plistVar('PayloadContent',$arrCertBase64,'data'); function plistVar($key,$var,$type) { //...snip... if ( $type == 'data' ) return plistData($key,$var); /...