前提:
ios移动端和charles处于同一局域网,且能够互相访问。html
charles配置
点击Proxy->ssl proxying settings->ssl proxying.ios
enable ssl proxying. include: *:443
点击proxy->proxy settings->proxies.浏览器
http proxy port:9999 support http/2 enable transparent http proxying
点击proxy->access control settings.spa
IP Range: 0.0.0.0/0 Prompt to allow unauthorized connections.
【mac】
安装证书。点击Help->SSL proxying->install charles root certificate.
mac端,设置证书信任。.net
ios移动端设置:
safari浏览器打开网址:chls.pro/ssl
下载安装证书。
设置->通用->描述文件->选择描述文件,安装。
设置->通用->关于本机->证书信任设置->选择证书,信任。code
Refer:
https://my.oschina.net/u/3767...
https://www.cnblogs.com/Zacha...htm