首页 » charles https unknow

android 华为手机charles 抓包https ,安装证书

在windows下使用惯了fiddler,在linux没有相应的抓包工具,后来查了下,mac的charles在linux下也可以使用,下载地址:https://www.charlesproxy.com/

[1] 配置Proxy---Proxy settings---enable transparent HTTP proxing ,enable HTTP Proxing over socks ----填入80,443,8080
[2] 配置Proxy--SSL Proxying settings ----添加*,443
[3]重启charles一次
[4]手机配置代理,安装手机端证书[电脑端可以不装],打开chls.pro/ssl会提示安装证书,这里华为不认识pem,可以Help----SSL proxing----Save 证书到电脑cer 格式,然后发送到手机,(设置---安全和隐私---从手机安装)
[5]但是charles显示unknown,发现是charles没有激活导致的,help ---register

Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4

[6]华为手机----设置---隐私和安全---更多安全设置----加密和凭据-----从存储设备安装---然后在受信任的凭据查看

还有一种可能,你的android 版本过高,也不支持抓包,charles出现unknown

As of Android N, additional steps area required to to add configuration to your application so that it trusts the SSL certificates generated by Charles SSL proxying. This means that you can only use SSL proxying with applications that you control.