I want to analyze the https traffic of the app I am developing for Android.
Charles Web Debugging Proxy is the tool I want to use for that. I have the following system configuartion:
- Mac OS X El Capitan Version 10.11.5
- Android Studio 2.1.2
- Build #AI-143.2915827, built on May 26, 2016
- Android SDK Tools 25.2.0 rc1
- Platform Version: API 24: Android 6.X (N) revision 2
- Charles Web Debugging Proxy v 3.11.5 30 day trial version
I already read several posts on StackOverflow like e.g.
But still I didn't reach my goal. I walked through all the important steps:
- Charles Root Certificate installed and added to Max OS X Keychain and trusted
- Open Proxy Settings: Proxy -> Proxy Settings, Proxies Tab, check "Enable transparent HTTP proxying"
- Open SSL Proxy Settings:Proxy -> SSL Proxy Settings, SSL Proxying tab, Check “enable SSL Proxying”
- Android Emulator started from Android Studio Terminal by
~/Library/Android/sdk/tools/emulator -netdelay none -netspeed full -http-proxy <IP_FROM_DEVICE_WITH_CHARLES_PROXY_INSTALLED>:8888 -avd Nexus_5_API_23
- Certificate installed from http://charlesproxy.com/getssl
- OR Certificate saved by Charles Proxy, converted to .crt by openssl and installed on emulated device
I can read all the http traffic in Charles Proxy without any problems. I also can read the https traffic but Charles only lists IP addresses. There are entries like
https://173.194.65.188:5228
So the ip addresses are not resolved. How to get real https URLs? Do I have to activate DNS for https somewhere?