How to sniff HTTPS traffic from Android emulator to remote server ?

Ezh picture Ezh · Aug 1, 2012 · Viewed 16.8k times · Source

I want to monitor HTTPS traffic from my application to remote server. I am trying to follow this instruction and it works for HTTP (without s), but not for HTTPS.

What is wrong? Should I write some custom code in my application to use https-proxy ?

Answer

Jerry Brady picture Jerry Brady · Oct 26, 2015

The easiest way to do this is to use CharlesProxy to proxy your device or emulator traffic for you. The only extra step you need to do is to install the CharlesProxy SSL certificate on your device/emulator which is very straight forward:

Download the certificate from Charles Proxy (it's in their help menu) and place it on your device, then install via security settings on your device.

You then configure your device or emulators network connection to use a manual proxy and set it to the Charles Proxy address and port. Enable SSL proxying and your SSL connections will be securely routed end-to-end via Charles and Charles will be able to show you the content of requests and responses in the clear.