前提:
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