android - Genymotion 和 Charles 的 SSL 代理?

标签 android proxy virtualbox charles-proxy genymotion

我正在尝试让 Genymotion(Virtualbox 中托管的 x86 Android 模拟器)与 Charles 代理一起使用。我已经设法将设备连接到设备的 wifi 代理设置中的代理,使用网关 ip(vm 配置为使用仅限主机的适配器 fwiw)并且代理 http 流量就好了。我已经在 vm 上安装了 charles 证书,但所有 ssl 连接仍然失败,并显示“SSL:无法识别的 SSL 消息,纯文本连接?”错误。有没有人能够配置 genymotion 与 Charles 作为 ssl 代理一起工作?我可以通过 virtualbox 设置实现更通用的解决方案吗?

提前致谢。

最佳答案

转到您的 genymotion 模拟器

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.

尽管在此之后您会看到在 charlesproxy 中记录的网络请求。打开 genymotion 浏览器 并转到以下 URL http://charlesproxy.com/getssl下载并安装证书。你应该很高兴。 复制自:http://rexstjohn.com/using-genymotion-charles-proxy/

关于android - Genymotion 和 Charles 的 SSL 代理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19280987/

相关文章:

Android:如何处理从右到左的滑动手势

android - 如何在按钮上显示动态文本并在 Android 中自动调整其大小?

Vagrant :无法使NFS工作

linux - Sudo 使错误 : make:*** [prepare-compiler-check] Error 1

port - Vagrant,VirtualBox - 找不到适配器?

java - 如何维护应用程序的付费和免费版本

android - 调用函数并将参数从 Kotlin 传递给 Flutter

java - Spring中使用cglib的嵌套代理

PHP 代理服务器

python - 在 CNTLM 代理后面使用 pip