Ubuntu 安裝Charles,證書設置,代理設置

charles在windows安裝就可以抓包。
Ubuntu下操作半天沒有實現。解決辦法找了很久。

解決辦法鏈接:https://www.golue.com/news/v251289.html

安裝:(官方文檔的步驟)
First install the GPG public key for the repository so you can verify that the packages are correctly signed. The current public key id is 1AD28806 and its fingerprint is 4BA7 DB85 7B57 0089 7420 96E1 5F16 B97C 1AD2 8806:

wget -q -O - https://www.charlesproxy.com/packages/apt/PublicKey | sudo apt-key add -

or alternatively:

sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 1AD28806

Then add the repository to your sources:

sudo sh -c 'echo deb https://www.charlesproxy.com/packages/apt/ charles-proxy main > /etc/apt/sources.list.d/charles.list'

Then update your sources and install Charles:

sudo apt-get update
sudo apt-get install charles-proxy

The package creates a “charles” command in /usr/bin, and adds Charles in your application menus in your window manager.

You may also install the beta track of Charles which is called charles-proxy-beta.

保存Charles根證書
第一步,打開Charles軟件,點擊“help",選中”SSL Proxy",選擇“Save Charles Root Certificate"。

將Charles根證書導入瀏覽器
打開firefox瀏覽器的工具欄裏的“選項”,打開其中的“高級”、“證書”。選擇“查看證書”,選擇導入證書,將下載的安全證書導入進去,並選擇信任證書。

瀏覽器代理設置
使用firefox瀏覽器的代理設置爲
address是127.0.0.1,Port是8080

Charles監聽端口
打開Charles軟件,點擊“proxy “,選擇”Proxy Setting”,點擊彈出一個新窗口,在新窗口中設置監聽端口爲8080.

完工!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章