Amazon Fire TV has no interface for installing SSL certificates. Earlier this year I wrote a post “how to set proxy server settings on Amazon Fire TV”. This post extends beyond that describing how to install an SSL certificate in order to enable SSL proxying.
Generate a Charles SSL .pem certificate
To generate a certificate navigate to Help -> SSL Proxying -> Save Charles Root Certificate
. Save the .pem
file to the res/raw
resources directory of your project.
Create an XML configuration
Add a new XML
file in the res/xml
directory of your project containing the following:
1 2 3 4 5 6 7 8 9 | <?xml version="1.0" encoding="utf-8"?> <network-security-config> <debug-overrides> <trust-anchors> <certificates src="@raw/charles_ssl_cert" /> <certificates src="user" /> </trust-anchors> </debug-overrides> </network-security-config> |
Add the configuration to the Android Manifest
This configuration works with Android 7+. Most TV devices are running an OS of this level or greater. Add the following networkSecurityConfig
entry to the Android Manifest application
xml node.
1 2 3 | <application android:networkSecurityConfig="@xml/network_security_config ... |
Enable SSL Proxying in Charles
Enable SSL proxying in Charles by navigating to Proxy -> SSL Proxy Settings
and checking the “Enable SSL Proxy” checkbox. If done correctly you should now be able to see the unencrypted request/responses of HTTPS calls.