Setup Apple TV for Charles Proxy (HTTP Proxy)

Charles Proxy enables the user to view HTTP, HTTPS, and HTTP/2 and enabled TCP port traffic accessed from, to, or via the local computer. This guide will help to proxy HTTP traffic from your Apple TV to Charles Proxy.

1. Prerequisites

  • Charles Proxy
  • Apple Configurator to get the device ready to install the profile.
  • Make sure your Mac and Apple TV are on the same Wi-Fi network. (A Mac connected via Ethernet will also work as long as both devices are on the same subnet, but your Apple TV must be on Wi-Fi.)
⚠️
This guide does not apply if the Apple TV is connected via Ethernet.

2. Export and Trust Charles Root Certificate

  • Now, we have to set export the Charles Root Certificate and make it trustable otherwise Apple Configurator 2 may say "This root certificate is not trusted".
  • Export the Charles Root Certificate as .cer. In the Charles Proxy menu, select "Help" > "SSL Proxying" > "Save Charles Root Certificate..."
  • Make sure to save this certificate as .cer.
  • Now double-click on the exported certificate to add it to your login Keychain.
  • You can see the keychain says that "This root certificate is not trusted"
  • To make it a trusted certificate, right-click on the certificate and then select "Get information".
  • In the "Trust" section > "When using this certificate", select "Always Trust".
  • Now keychain will show this as a trusted certificate.

3. Create and Configure Profile

  • In the Apple Configurator menu, select "File" > "New Profile"
  • Give your profile a name and a unique identifier (if not pre-filled).
  • Now, select Wi-Fi on the left and click Configure.
    • Enter your Wi-Fi SSID
    • In Proxy Setup, select Manual
    • Enter the IP address of the machine running Charles Proxy and port 8888 (default port for Charles Proxy)
    • Select Wi-Fi security type and enter the Wi-Fi password
  • Select the "Certificates" on the left and click Configure.
  • This brings up a dialog to select the certificate. We need to select "Charles Root Certificate" which we have exported in Step 3.
  • Save this profile. You can edit the profile in the future if you want to make any changes (like Wi-Fi Name, Password, Charles machine IP Address or Charles Root Certificates, etc.)

4. Install the Profile

  • In Apple Configurator, select your Apple TV and Click on the "Add" button in the top bar
  • Select the "Profiles" option
  • Select the save profile from the last step
  • This will install the profile on your Apple TV.
  • Now, on your Apple TV, you will see a new screen prompting you to install a profile. Select "Install".
  • It will present a warning about "Unmanaged Root Certificate", "Network Monitoring" and "Unsigned Profile". Select "Install".
  • Select "Install" again on the next screen.
  • Now, on your Apple TV, open the Settings app and navigate to "General" > "About" > "Certificate Trust Settings"
  • You will see the "Charles Proxy CA" certificate here. Which is marked as "Not Trusted." Select this certificate.
  • You will see a warning about "Root Certificate". Select "Continue".
  • Now, you can see the "Charles Proxy CA" certificate marked as "Trusted".
  • Make sure your Apple TV is now connected to Wi-Fi and shows proxy details as well.
  • In the Charles Proxy, the first time you will receive a popup for a connection request from your Apple TV. Allow the connection from your Apple TV. (If not restart your Apple TV and Charles Proxy)
  • Now Charles Proxy will start showing all your network requests from Apple TV. You can utilize all Charles Proxy feature now.


You've successfully subscribed to Developer Insider
Great! Next, complete checkout for full access to Developer Insider
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.