简体   繁体   English

Charles 代理阻止 Android 上的 SSL 流量

[英]Charles Proxy blocking SSL traffic on Android

Been using Charles Proxy for years now but recently I've been having issues setting up my Android device.多年来一直在使用 Charles Proxy,但最近我在设置我的 Android 设备时遇到了问题。

Certificates have been installed on the Android device.证书已安装在 Android 设备上。 I've confirmed they are in fact listed as trusted certificates in my certificates list.我已经确认它们实际上在我的证书列表中被列为受信任的证书。 Everything is setup correctly, but SSL traffic continues to be blocked.一切都设置正确,但 SSL 流量继续被阻止。

I've tried reaching out for support, but they don't ever respond.我曾尝试寻求支持,但他们从未回应。

Has anybody had this issue before?以前有人遇到过这个问题吗?

Everything is setup correctly, but SSL traffic continues to be blocked.一切都设置正确,但 SSL 流量继续被阻止。

Sometimes I used to see red cross on SSL requests coming from Android.有时我曾经在来自 Android 的 SSL 请求上看到红十字。 I was unable to read the content.我无法阅读内容。 It started working fine for me after I setup the SSP Proxy Settings option.在我设置SSP Proxy Settings选项后,它开始对我正常工作。 I checked the Enable SSL Proxying option as shown in the image and added the wildcard URL's that I want to filter.我选中了Enable SSL Proxying选项,如图所示,并添加了我想要过滤的通配符 URL。 Eg: *.your-server-url.com例如: *.your-server-url.com

在此处输入图片说明

Update:更新:

Also I don't think you can do it in release build of your application.此外,我认为您无法在应用程序的发布版本中做到这一点。

And for Android N and above there have been these changes you'll need to include in your project for it to work: https://www.charlesproxy.com/documentation/using-charles/ssl-certificates/对于 Android N 及更高版本,您需要在项目中包含这些更改才能使其正常工作: https : //www.charlesproxy.com/documentation/using-charles/ssl-certificates/

Hope this helps a bit.希望这个对你有帮助。

I was having all my traffic blocked.我的所有流量都被阻止了。 The issue was that "Allow list" (in Tools menu) was enabled, so only traffic to allowed locations were going through.问题是启用了“允许列表”(在“工具”菜单中),因此只有到允许位置的流量才会通过。 After disabling that, issue got fixed.禁用后,问题得到解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM