Ubuntu18.04 install Charles
Let’s start the installation process
First
wget -q -O - https://www.charlesproxy.com/packages/apt/PublicKey | sudo apt-key add -
sudo sh -c 'echo deb https://www.charlesproxy.com/packages/apt/ charles-proxy main > /etc/apt/sources.list.d/charles.list'
sudo apt-get update
# Charles4 installation
sudo apt-get install charles-proxy
# Charles3 installation(You can have both Charles 4 and Charles 3 installed at the same time.)
sudo apt-get install charles-proxy3
Second
Then the Charles icon will show on your destop,just double click,and register it.
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
Third
Need to setting browser’s network proxy before use Fiddle.
Fourth
Now,You can catch http request,but in most of applitcation scenarios we just want to catch https request as we use charles,then we need to config for it.
在火狐浏览器中输入:
chls.pro/ssl
页面会弹出一个窗口,选择信任,这样就在电脑上装好证书了。如果你只是想监控电脑-火狐浏览器的https请求,这样就已经搞定了。
接下来给手机装证书。
在Charles中, 点击Help->SSL Proxying->Install Charles Root Certificate on a Mobile Device or Remote Browser, 来查看当前IP地址下, 手机下载证书的网址.
网址如下,用safari浏览器打开:chls.pro/ssl
提示下载,然后安装。
然后IOS系统更新之后,还需要再进行下面的步骤:
在通用->关于本机->证书信任设置,信任证书就行了。解决了一块心病。