<?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">
<!-- Generated by the iPhone Configuration Utility /-->
<plist version="1.0">
<dict>
        <key>PayloadContent</key>
        <array>
                <dict>
                        <key>AutoJoin</key>
                        <true/>
                        <key>EAPClientConfiguration</key>
                        <dict>
                                <key>AcceptEAPTypes</key>
                                <array>
                                        <integer>[% provisioner.eap_type %]</integer>
                                </array>
                                <key>PayloadCertificateAnchorUUID</key>
                                <array>
                                        <string>c83817c4-d7c4-11e4-b9d6-1681e6b88ec1</string>
                                </array>
                        </dict>
                        <key>EncryptionType</key>
                        [% IF for_ios AND provisioner.security_type == 'WPA' %]
                        <string>WPA2</string>
                        [% ELSE %]
                        <string>[% provisioner.security_type %]</string>
                        [% END %]
                        <key>HIDDEN_NETWORK</key>
                        [% IF provisioner.broadcast %]
                        <false/>
                        [% ELSE %]
                        <true/>
                        [% END %]
                        <key>PayloadDescription</key>
                        <string>Configures wireless connectivity settings.</string>
                        <key>PayloadDisplayName</key>
                        <string>Wi-Fi ([% provisioner.ssid %])</string>
                        <key>PayloadIdentifier</key>
                        [% IF for_android %]
                        <string>wpa.[% reverse_fqdn %]</string>
			[% ELSIF for_ios %]
                        <string>ssid.[% reverse_fqdn %]</string>
                        [% ELSE %]
                        <string>[% reverse_fqdn %]</string>
                        [% END %]
                        <key>PayloadOrganization</key>
                        <string>[% provisioner.company %]</string>
                        <key>PayloadType</key>
                        <string>com.apple.wifi.managed</string>
                        <key>PayloadUUID</key>
                        <string>247F8812-0419-4548-9389-EA76325DEFC8</string>
                        <key>PayloadVersion</key>
                        <integer>1</integer>
                        <key>PayloadCertificateUUID</key>
                        <string>506CD34F-0AD1-4421-9F98-BA19DC4E0253</string>
                        <key>SSID_STR</key>
                        <string>[% provisioner.ssid %]</string>
                </dict>
                <dict>
                        <key>PayloadCertificateFileName</key>
                        <string>[% cert_cn %]</string>
                        <key>PayloadContent</key>
                        [% IF for_windows || for_android %]
                        <string>[% cert_content %]</string>
                        [% ELSE %]
                        <data>[% cert_content %]</data>
                        [% END %]
                        <key>PayloadDescription</key>
                        <string>Provides device authentication (certificate or identity).</string>
                        <key>PayloadDisplayName</key>
                        <string>[% cert_cn %]</string>
                        <key>PayloadIdentifier</key>
			[% IF for_ios %]
                        <string>client_certificate.[% reverse_fqdn %]</string>
			[% ELSE %]
                        <string>[% reverse_fqdn %]</string>
			[% END %]
                        <key>PayloadOrganization</key>
                        <string>[% provisioner.company %]</string>
                        <key>PayloadType</key>
                        <string>com.apple.security.pkcs12</string>
                        <key>PayloadUUID</key>
                        <string>506CD34F-0AD1-4421-9F98-BA19DC4E0253</string>
                        <key>PayloadVersion</key>
                        <integer>1</integer>
                </dict>
                [% IF !for_windows %]
                <dict>
                        <key>PayloadCertificateFileName</key>
                        <string>[% server_cn %]</string>
                        <key>PayloadContent</key>
                        [% IF for_windows || for_android%]
                        <string>[% server_content %]</string>
                        [% ELSE %]
                        <data>[% server_content %]</data>
                        [% END %]
                        <key>PayloadDescription</key>
                        <string>Provides device authentication (certificate or identity).</string>
                        <key>PayloadDisplayName</key>
                        <string>[% server_cn %]</string>
                        <key>PayloadIdentifier</key>
                        [% IF for_ios %]
                        <string>server_certificate.[% reverse_fqdn %]</string>
                        [% ELSIF for_android %]
                        <string>wpa.[% reverse_fqdn %]</string>
                        [% ELSE %]
                        <string>[% reverse_fqdn %]</string>
                        [% END %]
                        <key>PayloadOrganization</key>
                        <string>[% provisioner.company %]</string>
                        <key>PayloadType</key>
                        <string>com.apple.security.pkcs1</string>
                        <key>PayloadUUID</key>
                        <string>c83817c4-d7c4-11e4-b9d6-1681e6b88ec1</string>
                        <key>PayloadVersion</key>
                        <integer>1</integer>
                </dict>
                [% END %]
                <dict>
                        <key>PayloadCertificateFileName</key>
                        <string>[% ca_cn %]</string>
                        <key>PayloadContent</key>
                        [% IF for_windows || for_android%]
                        <string>[% ca_content %]</string>
                        [% ELSE %]
                        <data>[% ca_content %]</data>
                        [% END %]
                        <key>PayloadDescription</key>
                        <string>Provides device authentication (certificate or identity).</string>
                        <key>PayloadDisplayName</key>
                        <string>[% ca_cn %]</string>
                        <key>PayloadIdentifier</key>
                        [% IF for_ios %]
                        <string>ca_certificate.[% reverse_fqdn %]</string>
                        [% ELSIF for_android %]
                        <string>wpa.[% reverse_fqdn %]</string>
                        [% ELSE %]
                        <string>[% reverse_fqdn %]</string>
                        [% END %]
                        <key>PayloadOrganization</key>
                        <string>[% provisioner.company %]</string>
                        <key>PayloadType</key>
                        <string>com.apple.security.root</string>
                        <key>PayloadUUID</key>
                        <string>c83817c4-d7c4-11e4-b9d6-696969696969</string>
                        <key>PayloadVersion</key>
                        <integer>1</integer>
		</dict>
                [% IF for_android %]
                [% FOREACH ca_cert IN provisioner.get_other_radiusd_certificates() %]
                <dict>
                        <key>PayloadCertificateFileName</key>
                        <string>[% ca_cert.cn %]</string>
                        <key>PayloadContent</key>
                        <string>[% ca_cert.base64 %]</string>
                        <key>PayloadDescription</key>
                        <string>Provides other CA required for authentication.</string>
                        <key>PayloadType</key>
                        <string>com.apple.security.other_ca</string>
                </dict>
                [% END %]
                [% END %]
        </array>
        <key>PayloadDescription</key>
        <string>Profile description.</string>
        <key>PayloadDisplayName</key>
        <string>[% provisioner.description %]</string>
        <key>PayloadIdentifier</key>
	[% IF for_ios %]
	<string>profile.[% reverse_fqdn %]</string>
	[% ELSIF for_android %]
	<string>wpa.[% reverse_fqdn %]</string>
	[% ELSE %]
	<string>[% reverse_fqdn %]</string>
	[% END %]
        <key>PayloadOrganization</key>
        <string>[% provisioner.company %]</string>
        <key>PayloadRemovalDisallowed</key>
        <false/>
        <key>PayloadType</key>
        <string>Configuration</string>
        <key>PayloadUUID</key>
        <string>5F3EC12F-570E-48EE-A433-E8DC8E9EC4FE</string>
        <key>PayloadVersion</key>
        <integer>1</integer>
</dict>
</plist>
