Reputation: 674
I'm trying to get Genymotion (an x86 Android emulator hosted in Virtualbox) working with Charles proxy. I've managed to connect the device to the proxy in the device's wifi proxy settings, using the gateway ip (the vm is configured to use a host-only adapter fwiw) and http traffic is proxied just fine. I've got the charles cert installed on the vm, but all ssl connections still fail with "SSL: Unrecognized SSL message, plaintext connection?" errors. Has anyone been able to configure genymotion to work with Charles as an ssl proxy? Is there a more generic solution I can implement through the virtualbox settings?
Thanks in advance.
Upvotes: 25
Views: 19802
Reputation: 3594
It's tricky to setup properly on genymotion device, but here is the steps: 1. Start Genymotion device 2. Go to Setting -> Wifi -> Hold or open Advance Tab 3. Proxy Setting and select Manual 4. Config to the port of Mitm app. Charles is 8888, Proxyman is 9090 5. Install the certificate at: - http://charlesproxy.com/getssl for Charles - http://proxy.man/ssl for Proxyman 6. Accept the Certificate 7. Test again.
Basically, those steps are consistent from Charles Proxy and Proxyman. Hopefully it could help you.
Upvotes: 0
Reputation: 261
Go to your genymotion emulator
Settings -> Wifi -> Press and hold your active network
Select “Modify Network”
Select “Show Advanced Options”
Select “Proxy Settings -> Manual”
Set your Proxy to: 10.0.3.2 (Genymotion’s special code for the local workstation. the Network mode must be NAT on virtual device configuration)
Set your Port to: 8888
Press Save.
Although after this you will see the network requests logged in charlesproxy . Open the genymotion browser and go the following URL http://charlesproxy.com/getssl to download and install the certificate . you should be good to go . Copied from :http://rexstjohn.com/using-genymotion-charles-proxy/
Upvotes: 21
Reputation: 1035
Updated 21.07.2016 reflecting changes since Charles 3.10
For enabling plain text communication on SSL connections Charles act as a Man in the Middle. After you have managed your device to communicate via Charles http proxy, you need to download and install certificate from your running instance of Charles, its generated and signed by a Charles Root Certificate.
Basically there are two ways possible (I prefer the first one):
Device has to be configured to communicate via Charles!
Note 1: After install the certificate you will be forced to create a security Pin/Pattern/Password for the device.
Note 2: Since Charles v3.10 single SSL Root Certificates aren't supported anymore.
Upvotes: 14
Reputation: 245
After install the cert you will be forced to create a security Pin/Pattern/Password for the device. :)
Upvotes: 0