转:http://blog.sina.com.cn/s/blog_4b3c1f950102dspd.html
下面这个文章大致介绍了下配置描述文件从生成到安装的过程:
Over-the-air IPhone Setup Using a Signed .mobileconfig File
Note: this does not push your configuration to an iPhone. The user of the iPhone must go to a web address and install aconfiguration profile.
openssl smime" to sign your .mobileconfig file, but no one seems to tell you how. We'll go over that here as well.
1) Create a configuration(.mobileconfig) file
Your .mobileconfig file will end up looking something likethis:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict><key>PayloadContent</key> <array> <dict> <key>PayloadDisplayName</key> <string>LDAP Settings</string> <key>PayloadType</key> <string>com.apple.ldap.account</string> <key>PayloadVersion</key> <integer>1</integer> <key>PayloadUUID</key> <string>6df7a612-ce0a-4b4b-bce2-7b844e3c9df0</string> <key>PayloadIdentifier</key> <string>com.example.iPhone.settings.ldap</string> <key>LDAPAccountDescription</key> <string>Company Contacts</string> <key>LDAPAccountHostName</key> <string>ldap.example.com</string> <key>LDAPAccountUseSSL</key> <false /> <key>LDAPAccountUserName</key> <string>uid=username,dc=example,dc=com</string> <key>LDAPSearchSettings</key> <array> <dict> <key>LDAPSearchSettingDescrip tion</key> <string>Company Contacts</string> <key>LDAPSearchSettingSearchB ase</key> <string></string> <key>LDAPSearchSettingScope</key> <string>LDAPSearchSettingScopeSu btree</string> </dict> <dict> <key>LDAPSearchSettingDescrip tion</key> <string>Sales Departments</string> <key>LDAPSearchSettingSearchB ase</key> <string>ou=Sales,dc=example,dc=com</string> <key>LDAPSearchSettingScope</key> <string>LDAPSearchSettingScopeSu btree</string> </dict> </array> </dict> <dict> <key>PayloadDisplayName</key> <string>Email Settings</string> <key>PayloadType</key> <string>com.apple.mail.managed</string> <key>PayloadVersion</key> <integer>1</integer> <key>PayloadUUID</key> <string>362e5c11-a332-4dfb-b18b-f6f0aac032fd</string> <key>PayloadIdentifier</key> <string>com.example.iPhone.settings.email</string> <key>EmailAccountDescription</key> <string>Company E-mail</string> <key>EmailAccountName</key> <string>Full Name</string> <key>EmailAccountType</key> <string>EmailTypeIMAP</string> <key>EmailAddress</key> <string></string> <key>IncomingMailServerAuthen tication</key> <string>EmailAuthPassword</string> <key>IncomingMailServerHostNa me</key> <string>imap.example.com</string> <key>IncomingMailServerUseSSL </key> <true /> <key>IncomingMailServerUserna me</key> <string></string> <key>OutgoingPasswordSameAsIn comingPassword</key> <true /> <key>OutgoingMailServerAuthen tication</key>
