Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to convert a PFX file into mobileconfig format?

Hi,


I'm trying to automate the task of creating a mobileconfig file with a client certificate in it.


I understand that this is some kind of base64 encoding, but I don't get what they're encoding.

My PFX files are protected with a password (Although I tried to create a PFX without the password, and the base64 version of it differs from the .mobileconfig from iPCU version of it).


I already saw Alginald99 tip in: https://discussions.apple.com/thread/2780207?answerId=15080631022#15080631022

That tip didn't work for me. When I convert my PFX file to base64, the encoded string is nothing like the string in the .mobileconfig I created by iPCU.


Alginald99 - If you're still hang here - please help! 🙂


Thanks,

Bar.

iPhone 4, iOS 4.2

Posted on Jul 5, 2011 1:46 AM

Reply
10 replies

Jul 6, 2011 3:19 PM in response to Bartzy~

Use the iPhone Configuration Utility to import the pfx into a new configuration profile. Once you have it in there, use the Export feature to export the configuration profile and it will give you a .mobileconfig file. Once you have this file, you can use the whole thing or just the part you need from it. It's just a regular xml file that conforms to some schema from Apple.

Mar 7, 2012 6:47 AM in response to elisonniven

Yes, the key container GUID and the cert container GUID are different. That's normal.


You can reproduce this:

Delete the cert in windows mmc/certificate console, reimport the same cert in mmc/certificate and import this cert in iPCU. You can see the difference in mobileconfig.


Catch only the cert part from mobileconfig and dump it with <certutil.exe -v user.enc>. You see different container GUIDs.


I hope this helps.

How to convert a PFX file into mobileconfig format?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.