Enable HTTPS Decryption with Surge on Apple TV

Explains how to enable MITM on Apple TV using Surge—either via a Mac gateway or directly on tvOS—and how to install the certificate.

Jun 16, 2024 · 2 min read · 219 Words · -Views -Comments · Digital Nomad
Networking Apple Ecosystem 🇨🇳 阅读中文版
Read with AI

Choose an AI assistant

ChatGPT Open in a new tab with the article link and prompt
Claude Copy the prompt, then open Claude

Open Claude
Trouble reading the article?

If the prompt is missing, copy the full prompt below into your AI assistant. If the AI cannot read the article, paste the visible passage you want to discuss and add your question.

Enabling MITM on Mac or iPhone with Surge is straightforward. How do you do it on Apple TV? Here’s the process I use.

Option 1: Mac Gateway Mode

If Surge on macOS runs in gateway mode with MITM enabled, every Apple TV request routed through the Mac is decrypted automatically—even if Surge on tvOS is off.

Option 2: Direct MITM on Apple TV

  1. Export the certificate from Surge on macOS/iOS (whichever device generated the tvOS profile). Use the same device that created the config to avoid mismatched certificate settings.

    https://static.1991421.cn/2024/2024-06-16-230836.jpeg

  2. Upload the certificate to a cloud service (e.g., Dropbox) to obtain a direct download link. I use Dropbox with dl=1, such as https://www.dropbox.com/scl/fi/aaa.crt?rlkey=xxx&e=1&dl=1.

  3. On Apple TV: Settings → General → Privacy & Security. Under “Share Apple TV Analytics,” press the Play button to add a profile. Enter the certificate URL, then complete the installation.

    https://static.1991421.cn/2024/2024-06-16-232418.jpg

  4. Go to Settings → General → About → Certificate Trust and trust the certificate.

  5. Add MITM rules to the Surge tvOS profile just as you would on macOS or iOS.

  6. MITM is now active—you can inspect traffic via Surge Dashboard on Mac or iPhone.

Some services (Spotify, Apple, etc.) use SSL pinning. Don’t MITM those hosts or the apps will fail.

Final Thoughts

That’s all it takes to enable MITM on Apple TV.

References

Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover