- 我在Ubuntu-18.04配置charles抓取https包时,走了不少弯路。网上关于Ubuntu配置charles的博客省略了一些步骤,同时没对一些现象进行说明,导致自己在配置时很迷茫
-
Help -> SSL Proxying -> Install Charles Root Certificate
-
在Ubuntu-18.04下,无法用Shutter截取Charles配置 Install Charles Root Certificate 的图片,一移动鼠标到Shutter截图软件,Charles的二级菜单就会失焦隐藏,截取不了Install Charles Root Certificate菜单项的图片,只能盗用Windows下的截图做讲解
-
windows系统,点击了 install charles root certificate 后,不停地点击下一步,直到最后确定,这样子完成证书安装。我在Ubuntu系统下,不需要安装证书,不知道是不是系统不一样导致的
- Proxy -> SSL Proxying Settings -> Enable SSL Proxying
Charles抓取Chrome浏览器的https请求时,会导致浏览器抛错,最有效的解决方式是配置 --ignore-certificate-errors 参数,用了很长时间看了网上的其他,发现太繁琐了
Ubuntu系统,配置chrome忽略证书错误
- 看了Ubuntu下/usr/share/applications/google-chrome.desktop配置文件,得知如何给chrome配置参数,如何通过命令启动Chrome浏览器
/usr/bin/google-chrome-stable --ignore-certificate-errors
windows操作系统,配置chrome忽略证书错误
1. 找到你的Chrome快捷方式.
2. 右键图标,选择属性
3. 找到”目标”文本框,里面的内容是你的Chrome程序路径,类似这样C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe
4. 在这段文本的后面输入一个空格,然后输入-ignore-certificate-errors
5. 修改后的文本应该类似于这样:C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe -ignore-certificate-errors
6. 点击确定
7. 重新打开你的Chrome浏览器
# 或者直接在cmd运行命令跑chrome浏览器,不需要在配置文件写忽略证书
C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe -ignore-certificate-errors